diff --git a/testing/_py/test_local.py b/testing/_py/test_local.py index eee14846ef5..5d291128c52 100644 --- a/testing/_py/test_local.py +++ b/testing/_py/test_local.py @@ -207,7 +207,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):