Skip to content

Commit

Permalink
Require exceptiongroup unconditionally for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jan 25, 2022
1 parent 6a59996 commit b70f271
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ trustme # for the ssl tests
pylint # for pylint finding all symbols tests
jedi # for jedi code completion tests
cryptography>=36.0.0 # 35.0.0 is transitive but fails
exceptiongroup # for catch()

# Tools
black; implementation_name == "cpython"
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ cryptography==36.0.1
# trustme
decorator==5.1.0
# via ipython
exceptiongroup==1.0.0rc1
# via -r test-requirements.in
flake8==4.0.1
# via -r test-requirements.in
idna==3.3
Expand Down
3 changes: 2 additions & 1 deletion trio/_core/tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import outcome
import sniffio
import pytest
from exceptiongroup import catch

from .tutil import (
slow,
Expand All @@ -38,7 +39,7 @@
)

if sys.version_info < (3, 11):
from exceptiongroup import BaseExceptionGroup, ExceptionGroup, catch
from exceptiongroup import BaseExceptionGroup, ExceptionGroup


# slightly different from _timeouts.sleep_forever because it returns the value
Expand Down

0 comments on commit b70f271

Please sign in to comment.