| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
==========================================
+ Coverage 69.64% 69.91% +0.26%
==========================================
Files 60 60
Lines 10810 10817 +7
==========================================
+ Hits 7529 7563 +34
+ Misses 2750 2729 -21
+ Partials 531 525 -6
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
@corona10 |
Sorry, something went wrong.
|
Does this also affect the list type? >>> l = [1,2]
>>> class C:
... def __index__(self):
... return 1
...
>>> l[C()]
2If your change has an influence on this, you could add a test for list, too. |
Sorry, something went wrong.
Generate TypeError when __index__ return non-integer value Fixes go-python#96
When an error occurs, the error is returned and when the value is none the slice's values have a default value.
Add tests for __index__ in list, tuple, string
|
@Tim-St |
Sorry, something went wrong.
|
@HyeockJinKim Looks good, I think it should work now! |
Sorry, something went wrong.
|
That looks great now - thank you :-) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Generate TypeError when index return non-integer value
Fixes #96