| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report
@@ Coverage Diff @@
## master #523 +/- ##
==========================================
- Coverage 76.9% 69.42% -7.49%
==========================================
Files 63 1 -62
Lines 5582 278 -5304
Branches 890 0 -890
==========================================
- Hits 4293 193 -4100
+ Misses 998 85 -913
+ Partials 291 0 -291
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
For future reference, the only place where a general "catch (Exception E)" and subsequent Exceptions.SetError() is done without throwing away the outermost exception is in TypeMethod.Invoke. |
Sorry, something went wrong.
|
@rickardraysearch can you clarify about that TypeMethod.Invoke? Is this an issue or just a note? |
Sorry, something went wrong.
|
@denfromufa , I only wanted to note that the usage is not completely consistent across all invocations of Exceptions.SetError(). When we revisit how to do the SetErrors, I want to remember this without having to find it out again. |
Sorry, something went wrong.
Sorry, something went wrong.
|
What happens if you call next() after the exception is thrown? Might be worth adding a test for it to make sure it has expected behavior. Other than adding that test, ok to merge |
Sorry, something went wrong.
@vmuriart did you mean calling this part twice? with pytest.raises(OverflowException) as cm:
next(val)
|
Sorry, something went wrong.
|
@vmuriart or did you mean to verify this behavior? |
Sorry, something went wrong.
|
both :). |
Sorry, something went wrong.
|
@rickardraysearch can you please address the suggestions from @vmuriart and then we can merge this! |
Sorry, something went wrong.
|
We just ran into the same issue that this pull request is going to fix. Is there any particular reason this was never merged? If there is further work to be done we would be happy to help. |
Sorry, something went wrong.
|
@ArvidJB i just updated this branch with latest master and CI tests look good. You can add 2 additional unit tests suggested by @vmuriart but personally I approved this PR. If one more core developers approves, then we can merge this. @filmor had a question and that probably can be addressed in another PR. |
Sorry, something went wrong.
|
@denfromufa / @vmuriart I think this boils down to adding the following lines # after exception is thrown iterator is no longer valid
with pytest.raises(StopIteration):
next(val)
to test_iteration_innerexception. Should I create a new pull request for that or would you be willing to add those lines to @rickardraysearch 's request? |
Sorry, something went wrong.
|
@ArvidJB please fork @rickardraysearch branch and make a new pull request with your changes. If you PR looks good, then we can close this PR. |
Sorry, something went wrong.
|
@denfromufa I just submitted #693 with the enhanced testing |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
Catches exceptions in iterator MoveNext() and throws them in python instead of crashing.
Does this close any currently open issues?
Issue #475
Any other comments?
...
Checklist
Check all those that are applicable and complete.