X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3..bb91f86ea02e3535e3953ee0916dd6877bf585f7:/sdk/python/tests/test_arv_ls.py diff --git a/sdk/python/tests/test_arv_ls.py b/sdk/python/tests/test_arv_ls.py index 491fa86393..635c6254ad 100644 --- a/sdk/python/tests/test_arv_ls.py +++ b/sdk/python/tests/test_arv_ls.py @@ -89,6 +89,9 @@ class ArvLsTestCase(run_test_server.TestCaseWithServers, tutil.VersionChecker): self.assertEqual(1, error_mock.call_count) def test_version_argument(self): + if sys.version_info >= (3, 0): + import warnings + warnings.simplefilter("ignore") with redirected_streams(stdout=StringIO, stderr=StringIO) as (out, err): with self.assertRaises(SystemExit): self.run_ls(['--version'], None)