Skip to content

Commit c208e98

Browse files
committed
Add xfail test capturing missed expectation. Ref #96.
1 parent 906d379 commit c208e98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_zipp.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,16 @@ def test_suffixes(self, alpharep):
408408
e = root / '.hgrc'
409409
assert e.suffixes == []
410410

411+
import pytest
412+
413+
@pytest.mark.xfail(reason="96")
414+
@pass_alpharep
415+
def test_suffix_no_filename(self, alpharep):
416+
alpharep.filename = None
417+
root = zipp.Path(alpharep)
418+
assert root.joinpath('example').suffix == ""
419+
assert root.joinpath('example').suffixes == []
420+
411421
@pass_alpharep
412422
def test_stem(self, alpharep):
413423
"""

0 commit comments

Comments
 (0)