Skip to content

Commit d904808

Browse files
authored
Merge pull request #322 from bsipocz/MAINT_ignore_more_python
TST: skip test more roboustly for python version
2 parents 29e95b9 + 21754d9 commit d904808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_doctestplus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323

2424
pytest_plugins = ['pytester']
25+
py_version = Version(python_version())
2526

2627

2728
def test_ignored_whitespace(testdir):
@@ -1211,7 +1212,7 @@ def f():
12111212

12121213

12131214
@pytest.mark.xfail(
1214-
python_version() in ('3.11.9', '3.11.10', '3.11.11', '3.11.12', '3.11.13', '3.11.14', '3.12.3'),
1215+
py_version > Version('3.11.8') and py_version < Version('3.12') or py_version == '3.12.3',
12151216
reason='broken by https://github.com/python/cpython/pull/115440')
12161217
def test_ufunc(testdir):
12171218
pytest.importorskip('numpy')

0 commit comments

Comments
 (0)