Skip to content

Commit 926a75d

Browse files
committed
fix unintentional and unconditional skips
1 parent fd7742e commit 926a75d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

testing/_py/test_local.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,7 @@ def test_visit_norecurse(self, path1):
207207
assert "sampledir" in lst
208208
assert path1.sep.join(["sampledir", "otherfile"]) not in lst
209209

210-
@pytest.mark.parametrize(
211-
"fil",
212-
["*dir", pytest.mark.skip("sys.version_info < (3,6)")(b"*dir")],
213-
)
210+
@pytest.mark.parametrize("fil", ["*dir"])
214211
def test_visit_filterfunc_is_string(self, path1, fil):
215212
lst = []
216213
for i in path1.visit(fil):
@@ -463,12 +460,11 @@ def test_fspath_func_match_strpath(self, path1):
463460

464461
assert fspath(path1) == path1.strpath
465462

466-
@pytest.mark.skip("sys.version_info < (3,6)")
467463
def test_fspath_open(self, path1):
468-
f = path1.join("opentestfile")
469-
open(f)
464+
f = path1.join("samplefile")
465+
stream = open(f)
466+
stream.close()
470467

471-
@pytest.mark.skip("sys.version_info < (3,6)")
472468
def test_fspath_fsencode(self, path1):
473469
from os import fsencode
474470

0 commit comments

Comments
 (0)