-
Notifications
You must be signed in to change notification settings - Fork 12
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
Handle descriptors defined in PyProxyBase subclasses like C #6
Conversation
… C version does. This fixes #5.
Hmm, it looks like |
Please hold. I just discovered an issue with getting methods with |
Ok, that last commit did it. Unit tests pass here as they do in the subset of the application I was working with that prompted this discovery in the first place. |
…is will let zope.container._proxy reuse all the fixes in this branch.
I have a branch for |
This change now fails to cover the pure-python
|
Hmm. That's incredibly odd. I'll see if I can figure out why that is. |
@tseaver That was interesting. It turns out that if you switch the coverage environment to python2.7 instead of python2.6, you get 100% coverage again:
Under Python 2.7, Modules/complexobject.c (where However, under Python 2.6, that same code path simply does a Can we just update the coverage environment? |
Weird. I guess it would be fine to update the |
Python 2.6 uses a "hack" to call __complex__ and so we lost coverage of that. 2.7 does it correctly. See #6 (comment)
Ok, done. |
Handle descriptors defined in PyProxyBase subclasses like C
This fixes #5 plus a few other discrepancies I noticed during testing.
It also fixes the tox
py27-pure
environment, which wasn't actually exercising the pure Python code if the .so had already been built; now it takes an approach similar to other libraries and lets the environment variable take precedence.