Skip to content

Commit e73c411

Browse files
committed
fix test on py<311
1 parent e090517 commit e73c411

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

testing/python/raises_group.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ def test_xfail_raisesgroup(pytester: Pytester) -> None:
11451145
pytester.makepyfile(
11461146
"""
11471147
import pytest
1148+
if sys.version_info < (3, 11):
1149+
from exceptiongroup import ExceptionGroup
11481150
@pytest.mark.xfail(raises=pytest.RaisesGroup(ValueError))
11491151
def test_foo() -> None:
11501152
raise ExceptionGroup("foo", [ValueError()])

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ allowlist_externals =
107107
git
108108
commands =
109109
# Retrieve possibly missing commits:
110-
-git fetch --unshallow
111-
-git fetch --tags
110+
#-git fetch --unshallow
111+
#-git fetch --tags
112112

113113
sphinx-build \
114114
-j auto \

0 commit comments

Comments
 (0)