Skip to content

Commit 42d37ff

Browse files
authored
TST: Relax warning ignore
because it mutated
1 parent acf6ea7 commit 42d37ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_doctestplus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ def f():
738738
).assertoutcome(passed=0)
739739
if os.name == "nt" and python_version() == "3.14.0" and not PYTEST_LT_8_5:
740740
with warnings.catch_warnings():
741-
# unclosed file pytest.EXE
742-
warnings.filterwarnings("ignore", category=ResourceWarning)
741+
# ResourceWarning unclosed file pytest.EXE --> PytestUnraisableExceptionWarning
742+
warnings.filterwarnings("ignore")
743743
testdir.inline_run(
744744
'--doctest-plus', '--doctest-rst', '--ignore', 'bar.py'
745745
).assertoutcome(passed=2)

0 commit comments

Comments
 (0)