Put back the original test intent into place using 3.10 instead of 3.8

Taking into account https://github.com/pytest-dev/pytest/pull/12172\#discussion_r1575926834
This commit is contained in:
Pierre Sassoulas 2024-05-27 23:19:43 +02:00
parent 0cd77dfea5
commit 5f1f3aa6f8
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ class CommonFSTests:
assert "sampledir" in lst
assert path1.sep.join(["sampledir", "otherfile"]) not in lst
@pytest.mark.parametrize("fil", ["*dir", "*dir", b"*dir"])
@pytest.mark.parametrize(
"fil",
["*dir", "*dir", pytest.mark.skipif("sys.version_info < (3,10)")(b"*dir")],
)
def test_visit_filterfunc_is_string(self, path1, fil):
lst = []
for i in path1.visit(fil):