| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
implements it
This facilitates adding adapter registrations for the system user.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
The 4.2.2 release was made off a branch that was never merged back into
master!
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
| |
Just like the C implementation. Note that ``__str__`` is checked for
both implementations on both Python 2 and 3, but if there is no
``__unicode__`` method defined, Python 2's automatic fallback to
``__str__`` is **not** checked when ``unicode`` is called.
Add tests for these cases.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
And test this. This applies to both the class and the ZCML directive.
Also adjust IPermission to use NativeStringLine for ``id``, since
that's what ZCML has always been creating (it uses an Id, which
subclasses NativeStringLine), and what's typically written in source
code. Test that the permissions created from ZCML are valid with this
change.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- The implementation of __getattribute__/__getattr__ now behaves like
C and will not call a target's version of those functions more than
once if they raise an AttributeError.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Just like zope.interface (copied from there).
Fixes #33.
This should eliminate any chance of polluting (local) wheel caches if
PURE_PYTHON happens to be defined.
|
|\
| |
| | |
call PyObject_GC_UnTrack() in tp_dealloc()
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
see the following sites for details:
* https://bugs.python.org/issue31095
* https://github.com/python/cpython/pull/2974
Fixes #35.
|
|/
|
|
|
|
| |
Fixes #8.
Test environments still to come.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Some minor cleanups and simplifications to test_proxy.py:
- use loadTestsFromName() and wrap the conditional test in
@unittest.skipIf. This gets environments closer to running the same
number of tests, which helps when comparing to make sure nothing
gets skipped.
- Break compound assertions in test_coerce out into separate
assertions for ease of reading and debuging.
|
|\
| |
| | |
Fix TypeError handling for ProxyPy.
|
| |
| |
| |
| |
| |
| |
| | |
Also add additional tests clarifying how the str-to-repr fallthrough
works.
Fixes #7
|
| | |
|
|/
|
|
|
|
|
|
|
| |
Also rename all the test classes in test_checker for consistency. I
changed the test_suite function to not call them out by name and
noticed the number of tests run dropped. At first I thought it had
something to do with test class names or inheritance, so I made them
all consistent. But it turned out that the manual list actually had
some duplicates in it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on #29.
Drop Python 3.3.
Enable coveralls on Travis CI, and also fix using interpreters that
aren't there in the new default 'trusty' image.
Coverage is not at 100% and in fact appears to have dropped (I show
92% in one run, vs the previous reported 97%), but that's because
`coverage` and coveralls report files that aren't even imported (we
have a lot of those in the 'tests' package)...nosetests didn't.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes #27.
Add special cases to defaultCheckers for the two types of objects that
can be returned from zope.interface.providedBy. On Python 2, these
were never proxied, but on Python 3 they were. Now it's
consistent (they're never proxied). (Using an _iteratorChecker for
them would be a breaking change because the results of iterating them
would be security proxied interface objects that don't compare
equally.)
Also fix `__length_hint__` while we're at it. Previously it was
ignored because it is looked up on the type of the object, and proxy
didn't implement that. So implement it, and add it to the list of
names allowed for iterators.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes #23. Also a further fix for #20 (you couldn't iterate a BTree
all by itself).
Refactor the test case for BTree to be a shared implementation and
confirm that it works as expected for dict, using the actual dict
checker. Then apply it to OrderedDict and BTree and fix the resulting
failures by refactoring the fixup in checker.py to a shared
implementation and applying it.
|
|
|
|
| |
.items was. See #20 and #21.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also fix ``list(proxy_btree.items())`` (or a list comprehension of the
same) in Python 3, which wants the ``__len__`` for a hint.
This is a central place to make sure these all behave consistently.
Fixes #20
Also drop pypy3
As a 3.2 implementation, it's not supported by pip anymore. There is a
much more recent version, 3.5-beta, but it's not on Travis yet. The
3.3-alpha which is on Travis is a dead end.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|