Math: Fix test on Python 3.10 (nightly)

This commit is contained in:
Valentin Lorentz 2020-09-19 10:38:07 +02:00
parent 49e03decc4
commit 6da0e7fc5f
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@ matrix:
env: WITH_OPT_DEPS=true
dist: xenial
allow_failures:
# allow_failures:
- python: "nightly"
env: WITH_OPT_DEPS=true
dist: xenial

View File

@ -137,7 +137,8 @@ class MathTestCase(PluginTestCase):
def testCalcMemoryError(self):
self.assertRegexp('calc ' + '('*10000,
'(too much recursion' # cpython
'(too much recursion' # cpython < 3.10
'|too many nested parentheses' # cpython >= 3.10
'|parenthesis is never closed)' # pypy
)