Skip to content

Commit ee374e3

Browse files
authored
Merge pull request #1731 from nicoddemus/improve-test-args-deprecated
Make assert in test_str_args_deprecated more resilient
2 parents 350ebc9 + 3328cd2 commit ee374e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/acceptance_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,5 +807,7 @@ def pytest_logwarning(self, message):
807807

808808
ret = pytest.main("%s -x" % tmpdir, plugins=[Collect()])
809809
testdir.delete_loaded_modules()
810-
assert warnings == ['passing a string to pytest.main() is deprecated, pass a list of arguments instead.']
810+
msg = ('passing a string to pytest.main() is deprecated, '
811+
'pass a list of arguments instead.')
812+
assert msg in warnings
811813
assert ret == EXIT_NOTESTSCOLLECTED

0 commit comments

Comments
 (0)