Skip to content

Commit 7f1568c

Browse files
authored
Move ignore to the correct line
1 parent 42d37ff commit 7f1568c

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tests/test_doctestplus.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -732,21 +732,19 @@ def f():
732732
testdir.makefile('.rst', foo='>>> 1+1\n2')
733733

734734
testdir.inline_run('--doctest-plus').assertoutcome(passed=2)
735-
testdir.inline_run('--doctest-plus', '--doctest-rst').assertoutcome(passed=3)
736-
testdir.inline_run(
737-
'--doctest-plus', '--doctest-rst', '--ignore', '.'
738-
).assertoutcome(passed=0)
739735
if os.name == "nt" and python_version() == "3.14.0" and not PYTEST_LT_8_5:
740736
with warnings.catch_warnings():
741737
# ResourceWarning unclosed file pytest.EXE --> PytestUnraisableExceptionWarning
742738
warnings.filterwarnings("ignore")
743-
testdir.inline_run(
744-
'--doctest-plus', '--doctest-rst', '--ignore', 'bar.py'
745-
).assertoutcome(passed=2)
739+
testdir.inline_run('--doctest-plus', '--doctest-rst').assertoutcome(passed=3)
746740
else:
747-
testdir.inline_run(
748-
'--doctest-plus', '--doctest-rst', '--ignore', 'bar.py'
749-
).assertoutcome(passed=2)
741+
testdir.inline_run('--doctest-plus', '--doctest-rst').assertoutcome(passed=3)
742+
testdir.inline_run(
743+
'--doctest-plus', '--doctest-rst', '--ignore', '.'
744+
).assertoutcome(passed=0)
745+
testdir.inline_run(
746+
'--doctest-plus', '--doctest-rst', '--ignore', 'bar.py'
747+
).assertoutcome(passed=2)
750748

751749

752750
def test_ignore_glob_option(testdir):

0 commit comments

Comments
 (0)