diff options
author | da-woods <dw-git@d-woods.co.uk> | 2020-03-20 17:24:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 18:24:10 +0100 |
commit | 92625467ee510c54438a6b79824077ce6ae7864a (patch) | |
tree | 30bb6e0e21da872093f2a6ce566cf3523faf183b /tests/run/powop.pyx | |
parent | 4c7bd3c8e72acd6560cd9b42acaac0c4dac63c4e (diff) | |
download | cython-92625467ee510c54438a6b79824077ce6ae7864a.tar.gz |
Enable pypy as a required Travis test (GH-3392)
Reasoning being that this make it easier to catch pypy3
regressions as they happen.
* Fixed some very simple pypy3 failures (largely to do with
different exception strings)
* Splits pypy3_bugs.txt into three files
- one for bugs that cause hard crashes (which we don't want to
run in Travis at all);
- one for bugs that are probably unfixable because they're just
due to implementation details (e.g. when destructors are
called).
- all other bugs remain in pypy3_bugs.txt
(The categorization has been done fairly quickly, so some bugs
may be in the wrong place)
* Made sure (hopefully) all bugs are now categorized, so a basic
runtests.py with pypy3 should hopefully pass
* Changed pypy3 to be required in Travis
* Added an extra (optional) test that runs through pypy3_bugs.txt.
The majority of this is expected to fail. This requires an
extra option to runtest.py "--listfile", which just runs through
the tests listed in the file.
I haven't made pypy2 a required test in this commit - since Python2 support is deprecated soon, there seemed limited value in putting much effort into pypy2.
Added faulthandler to runtests in the hope of being able to pin-down segmentation faults better on Travis
FileListExcluder matches regexes, not just name. Uses the same mechanism as is used for processing string passed on commandline
Diffstat (limited to 'tests/run/powop.pyx')
-rw-r--r-- | tests/run/powop.pyx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run/powop.pyx b/tests/run/powop.pyx index 966336c2a..3f9fdd077 100644 --- a/tests/run/powop.pyx +++ b/tests/run/powop.pyx @@ -123,9 +123,9 @@ def optimised_pow2(n): 0.5 >>> optimised_pow2(0.5) == 2 ** 0.5 True - >>> optimised_pow2('test') + >>> optimised_pow2('test') # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: unsupported operand type(s) for ** or pow(): 'int' and 'str' + TypeError: ...operand... **... """ if isinstance(n, (int, long)) and 0 <= n < 1000: assert isinstance(2.0 ** n, float), 'float %s' % n @@ -153,9 +153,9 @@ def optimised_pow2_inplace(n): 0.5 >>> optimised_pow2_inplace(0.5) == 2 ** 0.5 True - >>> optimised_pow2_inplace('test') + >>> optimised_pow2_inplace('test') # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: unsupported operand type(s) for ** or pow(): 'int' and 'str' + TypeError: ...operand... **... """ x = 2 x **= n |