Skip to content

Commit b70f271

Browse files
committed
Require exceptiongroup unconditionally for tests
1 parent 6a59996 commit b70f271

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

test-requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ trustme # for the ssl tests
77
pylint # for pylint finding all symbols tests
88
jedi # for jedi code completion tests
99
cryptography>=36.0.0 # 35.0.0 is transitive but fails
10+
exceptiongroup # for catch()
1011

1112
# Tools
1213
black; implementation_name == "cpython"

test-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ cryptography==36.0.1
3232
# trustme
3333
decorator==5.1.0
3434
# via ipython
35+
exceptiongroup==1.0.0rc1
36+
# via -r test-requirements.in
3537
flake8==4.0.1
3638
# via -r test-requirements.in
3739
idna==3.3

trio/_core/tests/test_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import outcome
1717
import sniffio
1818
import pytest
19+
from exceptiongroup import catch
1920

2021
from .tutil import (
2122
slow,
@@ -38,7 +39,7 @@
3839
)
3940

4041
if sys.version_info < (3, 11):
41-
from exceptiongroup import BaseExceptionGroup, ExceptionGroup, catch
42+
from exceptiongroup import BaseExceptionGroup, ExceptionGroup
4243

4344

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

0 commit comments

Comments
 (0)