Skip to content

Commit 38890af

Browse files
committed
Ignore the RuntimeWarning in tests
1 parent 4d84741 commit 38890af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testing/test_xfail_behavior.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,9 @@ def test_function():
123123
format(**locals())
124124
)
125125

126-
pytest_run_result = testdir.runpytest(test_module, '-ra')
126+
pytest_run_result = testdir.runpytest(
127+
test_module,
128+
'-ra',
129+
'-p', 'no:warnings', # the current implementation emits RuntimeWarning
130+
)
127131
pytest_run_result.stdout.fnmatch_lines(expected_lines)

0 commit comments

Comments
 (0)