summaryrefslogtreecommitdiff
path: root/tests/checkers
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2022-07-31 16:34:16 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2022-08-03 08:43:01 -0400
commit145c51e4e1a5712053d926558ebf62ccfd0a1751 (patch)
tree2efafcf6bae2d18ffca2ea3b59c3b69811b6e121 /tests/checkers
parentdbc60af70fced751859377f6377b186c6403cdee (diff)
downloadpylint-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.py4
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",