From 3328cd26203f2086b445c009eeee2fa4e0d847ef Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 14 Jul 2016 18:37:59 -0300 Subject: [PATCH] Make assert in test_str_args_deprecated more resilient This attempts to fix CI which broke because of this test. Other warnings introduced in the future could break this test. --- testing/acceptance_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 58887712e..2e495e246 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -807,5 +807,7 @@ def test_str_args_deprecated(tmpdir, testdir): ret = pytest.main("%s -x" % tmpdir, plugins=[Collect()]) testdir.delete_loaded_modules() - assert warnings == ['passing a string to pytest.main() is deprecated, pass a list of arguments instead.'] + msg = ('passing a string to pytest.main() is deprecated, ' + 'pass a list of arguments instead.') + assert msg in warnings assert ret == EXIT_NOTESTSCOLLECTED