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)