From 3426fd374a55614d1bf5f93b7027413dd5499d30 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Sat, 22 Apr 2023 07:24:28 -0700 Subject: [PATCH] Skip tests for importlib_metadata on Python 3.7 --- test/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.py b/test/test.py index 409f558e..b27e9889 100755 --- a/test/test.py +++ b/test/test.py @@ -1369,11 +1369,13 @@ def _test_console_script(self, package=False, wheel=False): self.assertEqual(self.sh.run_command(command), "arg\r\n") @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") + @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_module(self): """Test completing a console_script for a module.""" self._test_console_script() @unittest.skipIf(os.uname()[0] == "Darwin", "Skip test that fails on MacOS") + @unittest.skipIf(sys.version_info < (3, 8), "Skip test that fails on Python 3.7 with importlib_metadata > 4") def test_console_script_package(self): """Test completing a console_script for a package.""" self._test_console_script(package=True)