Skip to content

Commit

Permalink
ci: Bump Pypy version (#1575)
Browse files Browse the repository at this point in the history
* ci: Bump Pypy version

* Math: update test

* cryptography doesn't work on pypy3.10
  • Loading branch information
progval authored Jul 17, 2024
1 parent b3f2566 commit 9fceb85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- python-version: "3.10"
with-opt-deps: false
runs-on: ubuntu-22.04
- python-version: "pypy-3.10"
with-opt-deps: false
runs-on: ubuntu-22.04

- python-version: "3.9"
with-opt-deps: true
Expand Down
7 changes: 4 additions & 3 deletions plugins/Math/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ def testCalcStrFloat(self):

def testCalcMemoryError(self):
self.assertRegexp('calc ' + '('*10000,
'(too much recursion' # cpython < 3.10
'|too many nested parentheses' # cpython >= 3.10
'|parenthesis is never closed)' # pypy
r"(too much recursion" # cpython < 3.10
r"|too many nested parentheses" # cpython >= 3.10
r"|parenthesis is never closed" # pypy for python < 3.10
r"|'\(' was never closed)" # pypy for python >= 3.10
)

def testICalc(self):
Expand Down

0 comments on commit 9fceb85

Please sign in to comment.