We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8661f7 commit 56369a2Copy full SHA for 56369a2
tests/integrations/unraisablehook/test_unraisablehook.py
@@ -5,12 +5,18 @@
5
from textwrap import dedent
6
7
8
-TEST_PARAMETERS = [("", "HttpTransport")]
+TEST_PARAMETERS = [
9
+ ("", "HttpTransport"),
10
+ ('_experiments={"transport_http2": True}', "Http2Transport"),
11
+]
12
-if sys.version_info >= (3, 8):
- 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
+)
17
18
19
+@minimum_python_38
20
@pytest.mark.parametrize("options, transport", TEST_PARAMETERS)
21
def test_unraisablehook(tmpdir, options, transport):
22
app = tmpdir.join("app.py")
0 commit comments