diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-07-31 16:34:16 -0400 |
---|---|---|
committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-08-03 08:43:01 -0400 |
commit | 145c51e4e1a5712053d926558ebf62ccfd0a1751 (patch) | |
tree | 2efafcf6bae2d18ffca2ea3b59c3b69811b6e121 /tests/checkers | |
parent | dbc60af70fced751859377f6377b186c6403cdee (diff) | |
download | pylint-git-145c51e4e1a5712053d926558ebf62ccfd0a1751.tar.gz |
Add xfail for `test_relative_beyond_top_level_two`
It uses epylint to run these tests, but since epylint manipulates cwd, that confounds what is under test
Diffstat (limited to 'tests/checkers')
-rw-r--r-- | tests/checkers/unittest_imports.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/checkers/unittest_imports.py b/tests/checkers/unittest_imports.py index ac36f784f..69d4e7bc0 100644 --- a/tests/checkers/unittest_imports.py +++ b/tests/checkers/unittest_imports.py @@ -7,6 +7,7 @@ import os import astroid +import pytest from pylint import epylint as lint from pylint.checkers import imports @@ -40,6 +41,9 @@ class TestImportsChecker(CheckerTestCase): self.checker.visit_importfrom(module.body[2].body[0]) @staticmethod + @pytest.mark.xfail( + reason="epylint manipulates cwd; these tests should not be using epylint" + ) def test_relative_beyond_top_level_two() -> None: output, errors = lint.py_run( f"{os.path.join(REGR_DATA, 'beyond_top_two')} -d all -e relative-beyond-top-level", |