Skip to content

Commit

Permalink
pyp: fix minor test failure on py311
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 12, 2023
1 parent 567093f commit e571fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- {python: '3.8', tox: py38}
- {python: '3.9', tox: py39}
- {python: '3.10', tox: py310}
- {python: '3.11-dev', tox: py311}
- {python: '3.11', tox: py311}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def effect(*args, **kwargs):
)
+ (" ^^^^^^^^^^^\n" if sys.version_info >= (3, 11) else "")
+ (' File "<pyp>", in f\n' f" {po}1 / 0{pc}\n")
+ (" \n" if sys.version_info >= (3, 11) else "")
+ (" \n" if sys.version_info >= (3, 11) else "")
+ ("ZeroDivisionError: division by zero\n")
)
print(repr(pyp_error))
Expand Down

0 comments on commit e571fc9

Please sign in to comment.