Math: Fix test on Pypy.

This commit is contained in:
Valentin Lorentz 2019-11-11 12:38:27 +01:00
parent 78a50c81bd
commit 1a69a7b892

View File

@ -136,7 +136,10 @@ class MathTestCase(PluginTestCase):
self.assertResponse('calc 3+33333333333333', '33333333333336')
def testCalcMemoryError(self):
self.assertRegexp('calc ' + '('*500, 'too much recursion')
self.assertRegexp('calc ' + '('*10000,
'(too much recursion' # cpython
'|parenthesis is never closed)' # pypy
)
def testICalc(self):
self.assertResponse('icalc 1^1', '0')