Skip to content

Commit

Permalink
Skip tests for importlib_metadata on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Apr 22, 2023
1 parent da2d660 commit 3426fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3426fd3

Please sign in to comment.