From c208e98cfc01c5cd53d94cd85a54668c60f967f9 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 14 Jul 2023 14:32:45 -0400 Subject: [PATCH] Add xfail test capturing missed expectation. Ref #96. --- tests/test_zipp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_zipp.py b/tests/test_zipp.py index 4f8520f..6896309 100644 --- a/tests/test_zipp.py +++ b/tests/test_zipp.py @@ -408,6 +408,16 @@ def test_suffixes(self, alpharep): e = root / '.hgrc' assert e.suffixes == [] + import pytest + + @pytest.mark.xfail(reason="96") + @pass_alpharep + def test_suffix_no_filename(self, alpharep): + alpharep.filename = None + root = zipp.Path(alpharep) + assert root.joinpath('example').suffix == "" + assert root.joinpath('example').suffixes == [] + @pass_alpharep def test_stem(self, alpharep): """