X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba917d72d48615cdd0c6da87d41b6bd0f9f26666..927524f1be454de021180b74999d682780b8cb6b:/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 e3f6c128aa..635c6254ad 100644 --- a/sdk/python/tests/test_arv_ls.py +++ b/sdk/python/tests/test_arv_ls.py @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + from __future__ import absolute_import from builtins import str from builtins import range @@ -85,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)