15370: Fix flaky test.
[arvados.git] / sdk / python / tests / test_arv_ls.py
index 491fa86393e8aaba00bb6c1ae86f3dfe40e72038..635c6254ad73f9c8d8178634c0ce33c0b038b0d0 100644 (file)
@@ -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)