| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- We have u'literals' so we don't need a _u() function.
For the record the Emacs replacement regex was
`_u(\(['"]\)\([^)]*\)\1) -> u\1\2\1`. Amazingly, I typed that right
on the first try.
A few things were only used in one (test) file or function, so it was
better to keep the use, if any, local and out of the "public" api:
- We can use io.StringIO everywhere and it's fast. It was only
imported in one file anyway.
- We can just import pickle. It was only imported in one file anyway.
- TEXT was only used in one test function, `type(u'')` is just as
clear (especially since the usual name is `text_type`).
- reload was only used in one test function, so move the definition
there.
|
|\
| |
| | |
Switch to modern 'coverage' environment and run doctests on all versions; fix Travis builds
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
It wants to print `<__builtin__.Foo ...>` instead of just `<Foo ...>`.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
Fix proxying of providedBy on Python 3 and fix __length_hint__ everywhere
|
| |
| |
| |
| | |
object has no attribute 'sort' on 3.5/3.6
|
| |
| |
| |
| | |
The upgrade step is breaking on Python 3.6. See https://travis-ci.org/zopefoundation/zope.security/jobs/270003178
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| | |
OrderedDict, BTree and dict all iterate the same way.
|
|/
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
Be specific that BTrees.keys and .values also are fixed
|
|/
|
|
| |
.items was. See #20 and #21.
|
| |
|
| |
|
|\
| |
| | |
Fix iteration of BTrees.items() in pure-python; and 3.6 support
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
Fix tests on 64-bit Windows
|
| | |
|
| |
| |
| |
| |
| |
| | |
Hopefully. Appveyor should tell me if I've succeeded.
Fixes #17.
|
|/ |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
zopefoundation/avoid-poisoning-wheel-cache-python-pure
Don't use/poison global wheel cache when building w/ PURE_PYTHON.
|
|/ |
|
|\
| |
| | |
Drop support for Python 2.6 and 3.2.
|
| | |
|
|/ |
|
|\
| |
| | |
Note explicit support for Python 3.5
|
|/ |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| |\
| |/
|/|
| | |
into pypy-support
|
|\ \
| | |
| | | |
Skip the failing class-hashing tests under PyPy 2.5.0. Fixes #11.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Add tests for 'py27-pure', 'py33-pure', 'py34', 'coverage', and 'docs'
builds.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Compatibility with zope.proxy 4.1.5 under PyPy.
|
| | |/
| | |
| | |
| | | |
pure-python implementation. Fixes zopefoundation/zope.component#16.
|
| |/ |
|
| |
| |
| |
| | |
doesn't fail interactively though.
|