Skip to content

Commit

Permalink
Skip test_catch_handler_raises() on Python 3.11 if the Python version…
Browse files Browse the repository at this point in the history
… is too low
  • Loading branch information
agronholm committed Jul 5, 2023
1 parent fb8903a commit 452ba09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_catch_py311.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import pytest

from exceptiongroup import ExceptionGroup
Expand Down Expand Up @@ -121,6 +123,10 @@ def test_catch_full_match():
pass


@pytest.mark.skipif(
sys.version_info < (3, 11, 4),
reason="Behavior was changed in 3.11.4",
)
def test_catch_handler_raises():
with pytest.raises(RuntimeError, match="new"):
try:
Expand Down

0 comments on commit 452ba09

Please sign in to comment.