Skip to content

Commit

Permalink
Changed source of lint_module_test due to new checkers breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
yushao2 committed May 12, 2021
1 parent 445e79a commit 7b211c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylint/testutils/lint_module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def __init__(self, test_file: FunctionalTestFile, config: Optional[Config] = Non

def setUp(self):
if self._should_be_skipped_due_to_version():
pytest.skip("Test cannot run with Python %s." % sys.version.split(" ")[0])
pytest.skip(
"Test cannot run with Python %s." % sys.version.partition(" ")[0]
)
missing = []
for requirement in self._test_file.options["requires"]:
try:
Expand Down

0 comments on commit 7b211c4

Please sign in to comment.