Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Configuring for c-code | Marius Gedminas | 2022-09-12 | 1 | -0/+30 |
| | | | | | | Add a regression test for CFLAGS not having -Ofast, which is known to break things. See https://github.com/zopefoundation/meta/pull/155 for reference. | ||||
* | Apply isort rules | Michael Howitz | 2022-04-22 | 31 | -132/+258 |
| | |||||
* | re #83: Remove `unittest.makeSuite` as it is deprecated in Python 3.11+. | Steffen Allner | 2022-04-13 | 3 | -8/+8 |
| | |||||
* | Merge pull request #81 from cjwatson/default-method-wrapper-checker | Colin Watson | 2022-03-10 | 2 | -1/+7 |
|\ | | | | | Fix default checker for method-wrapper on Python 3 | ||||
| * | Fix default checker for method-wrapper on Python 3 | Colin Watson | 2022-03-10 | 2 | -1/+7 |
| | | | | | | | | | | | | | | | | | | The default checker for `method-wrapper` objects such as `().__repr__` and `{}.__repr__` was previously set by setting the default checker `type(().__getslice__)`, which only worked on Python 2. Use a different exemplar for this type which works on both Python 2 and 3. Fixes #75. | ||||
* | | Fix a number of typos | Colin Watson | 2022-03-10 | 2 | -4/+4 |
|/ | |||||
* | Fix tests on Python 3.10 + lint.config-with-c-code | Michael Howitz | 2021-11-23 | 2 | -2/+2 |
| | |||||
* | Remove obsolete tests. | Michael Howitz | 2021-11-11 | 1 | -19/+0 |
| | | | | | | | | | | | | | | I renamed the tests (that's why their name ends with `2`) there where methods with the same names around line 1600. The other tests assure that a TypeError is raised when calling `pow(x, y, proxy)` because "a PyProxy cannot lie about its type". Interestingly the deleted tests did not fail on CPython but the tests expecting the TypeError were locally successful, too, but not at GHA – that's strange. I am restoring here the status before my renaming of the tests: The now deleted tests did not run because of the name clash. | ||||
* | Lint the code. | Michael Howitz | 2021-08-30 | 33 | -422/+752 |
| | | | | Add support for Python 3.9. | ||||
* | Ensure all objects have consistent interface resolution orders. | Jason Madden | 2020-03-23 | 3 | -6/+29 |
| | | | | Fixes #71 | ||||
* | Let interfaces be iterated on Python 3 | Jason Madden | 2020-02-06 | 2 | -5/+32 |
| | | | | Fixes https://github.com/zopefoundation/zope.interface/issues/141 | ||||
* | Allow iter({}.items()) on PyPy3 | Marius Gedminas | 2019-11-11 | 1 | -0/+4 |
| | | | | | | | | Dict item iterators use a special type (builtins.dict_itemiterator) on recent versions of PyPy3. Fixes zope.security.interfaces.ForbiddenAttribute: ('__next__', <dict_itemiterator object at 0x00007f7c9c107320>) | ||||
* | Decimal checker: __truediv__ was missing, also added tests, did some cleanupadamg-truediv-missing | Adam Groszer | 2019-01-03 | 2 | -10/+59 |
| | |||||
* | Fix tests and DeprecationWarnings. | Jason Madden | 2018-10-19 | 2 | -14/+16 |
| | | | | Fixes #55 | ||||
* | Add ``ISystemPrincipal`` and make ``system_user`` a regular object that ↵feature/system-user-regular-object | Jason Madden | 2018-08-20 | 4 | -4/+42 |
| | | | | | | implements it This facilitates adding adapter registrations for the system user. | ||||
* | Fixes #10: Pure-python proxies don't check __unicode__ | Jason Madden | 2018-01-11 | 2 | -6/+58 |
| | | | | | | | | | 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. | ||||
* | Fix default values for Permission's title and description in Py2issue48 | Jason Madden | 2017-11-30 | 4 | -11/+38 |
| | | | | | | | | | | 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. | ||||
* | Consistent capitalization of ID in docstrings and fields (except one case ↵ | Jason Madden | 2017-09-15 | 7 | -14/+14 |
| | | | | | | where it was a i18n messageid). TIL that sphinx.ext.doctest has IGNORE_EXCEPTION_DETAIL set by default. | ||||
* | Document proxy.__class__ troubles with isinstance/issubclassdocs | Jason Madden | 2017-09-14 | 1 | -1/+4 |
| | | | | | | | | And suggest workarounds, in a prominent new section about proxy troubles. Link to this from everywhere we talk about proxies. Fixes #26 | ||||
* | Split narr.rst into parts and make the example more correct. | Jason Madden | 2017-09-14 | 1 | -0/+3 |
| | | | | | | It's not doctested so it isn't fully guaranteed to be correct, but it was relying on conpects that don't exist anymore (simpleinteraction, and the ISecurityPolicy having the checkPermission() method). | ||||
* | Docs for testing.py | Jason Madden | 2017-09-14 | 2 | -4/+26 |
| | |||||
* | Cross refs for simplepolicies.py | Jason Madden | 2017-09-14 | 1 | -2/+9 |
| | |||||
* | Cross-refs and cleanups for proxy.py/rst | Jason Madden | 2017-09-14 | 1 | -1/+11 |
| | |||||
* | Cross-refs and cleanups for permission.py/rst | Jason Madden | 2017-09-14 | 1 | -8/+20 |
| | |||||
* | Doc cross-refs and cleanup for management.rst/py | Jason Madden | 2017-09-14 | 1 | -12/+20 |
| | |||||
* | Doc cleanup for decorator.rst | Jason Madden | 2017-09-14 | 1 | -0/+2 |
| | |||||
* | cross-refs and cleanups for checker and adapter. | Jason Madden | 2017-09-14 | 2 | -48/+128 |
| | |||||
* | cross-references and interface cleanups for interfaces.py/rst | Jason Madden | 2017-09-14 | 1 | -83/+211 |
| | |||||
* | Promote the constant for zope.Public from metaconfigure.py to interfaces.pypublic_permission_const | Jason Madden | 2017-09-13 | 11 | -42/+48 |
| | | | | | | | | | And use it consistently throughout this package. On Python 2, sometimes we were comparing the string with unicode and sometimes with str. Now its consistent. This is a start to addressing #6 | ||||
* | Remove commented code from test_checker.py | Jason Madden | 2017-09-13 | 6 | -99/+85 |
| | | | | | | Also run all remaining tests on all Python versions. Trivial trailing/keyword arg whitespace cleanups. | ||||
* | Use zope.proxy 4.3.0 so that tests pass on Py3.issue40 | Jason Madden | 2017-09-13 | 1 | -9/+1 |
| | |||||
* | 100% coverage for testing.py | Jason Madden | 2017-09-12 | 4 | -46/+61 |
| | |||||
* | 100% coverage for checker.py. Minor whitespace cleanups. | Jason Madden | 2017-09-12 | 1 | -58/+67 |
| | |||||
* | 100% coverage for proxy.py | Jason Madden | 2017-09-12 | 2 | -8/+83 |
| | | | | | | - 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. | ||||
* | Consistently use the correct base for super calls. | Jason Madden | 2017-09-12 | 1 | -26/+26 |
| | |||||
* | Coverage for get/setslice, length_hint, and comparison methods in proxy.py | Jason Madden | 2017-09-12 | 2 | -22/+134 |
| | |||||
* | 100% coverage for test_location.py | Jason Madden | 2017-09-12 | 1 | -10/+1 |
| | | | | zope.location is a hard test dependency, no need for conditional logic. | ||||
* | 100% coverage for test_proxy.py | Jason Madden | 2017-09-12 | 1 | -133/+76 |
| | | | | | - Modern assert methods - Unify some py2/py3 tests that just depended on a method name. | ||||
* | 100% coverage for test_checker.py | Jason Madden | 2017-09-12 | 2 | -261/+276 |
| | | | | | | - Modern assert methods - Whitespace cleanup - A whole test class was being skipped because of a duplicate name. | ||||
* | 100% coverage for test_adapter.py | Jason Madden | 2017-09-12 | 1 | -145/+83 |
| | | | | | | - Use dict comprehensions - Use moddern self.assertIs - Unify external imports | ||||
* | 100% for test_permission.py | Jason Madden | 2017-09-12 | 1 | -52/+8 |
| | |||||
* | Remove unused and broken zope.security.setup. | Jason Madden | 2017-09-11 | 1 | -20/+0 |
| | |||||
* | Remove unused internal files from tests/ | Jason Madden | 2017-09-11 | 5 | -162/+5 |
| | |||||
* | 100% coverage of test_zcml_functest.py | Jason Madden | 2017-09-11 | 1 | -127/+33 |
| | | | | We have hard test dependencies, we don't need to be conditional. | ||||
* | Document behaviour of ParanoidSecurityPolicy when there are no participationsissue19 | Jason Madden | 2017-09-11 | 2 | -15/+24 |
| | | | | | | Add an explicit test for this case. Fixes #19. | ||||
* | Merge pull request #37 from zopefoundation/issue35 | Jason Madden | 2017-09-11 | 2 | -0/+2 |
|\ | | | | | call PyObject_GC_UnTrack() in tp_dealloc() | ||||
| * | call PyObject_GC_UnTrack() in tp_dealloc() | KIMURA Chikahiro | 2017-09-11 | 2 | -0/+2 |
| | | | | | | | | | | | | | | | | | | see the following sites for details: * https://bugs.python.org/issue31095 * https://github.com/python/cpython/pull/2974 Fixes #35. | ||||
* | | Always test watching checkers. Quiet their output to stderr.issue8 | Jason Madden | 2017-09-11 | 4 | -32/+65 |
| | | |||||
* | | Fix ZOPE_WATCH_CHECKERS=1 in pure-Python mode. | Jason Madden | 2017-09-11 | 1 | -20/+35 |
|/ | | | | | | Fixes #8. Test environments still to come. | ||||
* | Respect PURE_PYTHON at runtime. Partial fix for #33.issue33a | Jason Madden | 2017-09-08 | 2 | -9/+18 |
| |