summaryrefslogtreecommitdiff
path: root/src/zope/interface/_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix verification for methods of builtin types with pseudo-default arguments ↵issue118Jason Madden2020-02-061-0/+3
| | | | | | | | | on Pypy On PyPy2, they are ignored (like on CPython), but on PyPy3 they can actually be validated. Fixes #118
* Bump version as suggested in review.no-pure-python-buildJason Madden2020-01-221-0/+1
| | | | Also add a line of missing whitespace.
* Tweaks for coverage reporting.Jason Madden2020-01-211-2/+2
| | | | And tox. It wasn't properly working to report coverage before.
* Test PURE_PYTHON at runtime.Jason Madden2020-01-211-1/+108
| | | | | | | Turns out that the C extensions build and work fine with PyPy, but don't use them by default. Let them be forced, though. Tests needed some refactoring to account for the various permutations.
* Enable combined coverage reports under tox and branch coveragecombined-coverageJason Madden2017-06-141-4/+4
| | | | | | | | Fixes #91 Remove many (or most) now-redundant 'pragma: no cover'. A few minor test changes to get full branch coverage.
* Test sanity cleanups (#88)Jason Madden2017-06-081-14/+9
| | | | | | | | | | | | | | | | | | | * Test sanity cleanups Partially addresses #87 - Remove manual lists of tests in favor of loadTestsFromName. This mostly gets all test runners running the same number of tests. - Remove `additional_tests`, which was just duplicating the discovered tests. No modern test runner seems to need it. - Change the two compatibility skip decorators to actually use unitetest skips, which helps with the reporting. * Per @tseaver, drop most test_suite functions. * Port remaining doctest to unittest. * Make the odd tests work on all supported python versions
* Remove the _u compat function.literalsJason Madden2016-08-021-6/+0
| | | | | | Since we no longer support 3.2 we can use the literal syntax. This was done with a quick sed script.
* Drop unneeded compatibility shims for method / function attributes.Tres Seaver2012-04-061-8/+0
| | | | | '__code__', '__defaults__', '__func__', and '__self__' all work fine on Python 2.6+.
* Close Py3k coverage gap to absolute minimum.Tres Seaver2012-04-061-4/+17
| | | | | We *can't* test the classAdvice stuff under Py3k. Need to deprecate it before the 4.0 release.
* Merge Py3k w/o 2to3 work.Tres Seaver2012-04-041-0/+64