Skip to content

Commit 56369a2

Browse files
Version gate unraisable exception test as well
1 parent f8661f7 commit 56369a2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/integrations/unraisablehook/test_unraisablehook.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
from textwrap import dedent
66

77

8-
TEST_PARAMETERS = [("", "HttpTransport")]
8+
TEST_PARAMETERS = [
9+
("", "HttpTransport"),
10+
('_experiments={"transport_http2": True}', "Http2Transport"),
11+
]
912

10-
if sys.version_info >= (3, 8):
11-
TEST_PARAMETERS.append(('_experiments={"transport_http2": True}', "Http2Transport"))
13+
minimum_python_38 = pytest.mark.skipif(
14+
sys.version_info < (3, 8),
15+
reason="The unraisable exception hook is only available in Python 3.8 and above.",
16+
)
1217

1318

19+
@minimum_python_38
1420
@pytest.mark.parametrize("options, transport", TEST_PARAMETERS)
1521
def test_unraisablehook(tmpdir, options, transport):
1622
app = tmpdir.join("app.py")

0 commit comments

Comments
 (0)