diff --git a/testing/_py/test_local.py b/testing/_py/test_local.py index 4d11ba779d3..36d022fcca3 100644 --- a/testing/_py/test_local.py +++ b/testing/_py/test_local.py @@ -205,7 +205,10 @@ def test_visit_norecurse(self, path1): 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):