-
Notifications
You must be signed in to change notification settings - Fork 749
clrmethod working for python 2 #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clrmethod working for python 2 #494
Conversation
Codecov Report
@@ Coverage Diff @@
## master #494 +/- ##
==========================================
+ Coverage 74.24% 76.38% +2.14%
==========================================
Files 64 64
Lines 5564 5573 +9
Branches 894 896 +2
==========================================
+ Hits 4131 4257 +126
+ Misses 1147 1021 -126
- Partials 286 295 +9
Continue to review full report at Codecov.
|
It's a bit strange to do the Runtime.PyObject_IsIterable and Runtime.PyIter_Check tests from python, but I didn't want to add a new nunit project for the new unit tests. Possibly, that's something to consider for the future. Or is there a good place for nunit tests not related to the embedding? |
897828d
to
1d33284
Compare
…ch does not have type feature iter
df75164
to
1a85eef
Compare
I don't see a problem with adding those tests to what is currently called |
964c937
to
c9d7b71
Compare
c9d7b71
to
4be925f
Compare
Thank you very much for this :) |
* Add Runtime.PyObject_IsIterable and fix PyIter_Check for Python 2 * Add test_clrmethod.py and update AUTHORS and CHANGELOG * Fix test docstrings * Use IntPtr.Zero instead of null for comparisons with IntPtrs * Add test on Runtime.PyObject_IsIterable and Runtime.PyIter_Check * Use the already defined TypeFlags.HaveIter instead of redefining it * Add PyIter_Check and PyObject_IsIterable tests on threading.Lock, which does not have type feature iter * Move the tests from test_runtime.py to TestRuntime.py
What does this implement/fix? Explain your changes.
The issue #492 . It does this by replacing the call to PyIter_Check (which checks whether the object is an iterator) in PyObject.IsIterable by a call to the new method PyObject_IsIterable (which checks whether the object is an iterable). It also fixes the PyIter_Check for python 2, which has probably never worked.
...
Does this close any currently open issues?
#492
...
Any other comments?
...
Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG