From f9b24cf91095b94ba795ff633bd8deb5109d19ba Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Tue, 3 Oct 2023 17:28:51 +0200 Subject: [PATCH] tests: xfail non-applicable __new__ test --- upath/tests/test_core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/upath/tests/test_core.py b/upath/tests/test_core.py index 11ef05ab..2162cee1 100644 --- a/upath/tests/test_core.py +++ b/upath/tests/test_core.py @@ -116,6 +116,7 @@ def test_instance_check_local_uri(local_testdir): assert isinstance(upath, UPath) +@pytest.mark.xfail(sys.version_info >= (3, 12), reason="requires python<3.12") def test_new_method(local_testdir): path = UPath.__new__(pathlib.Path, local_testdir) assert str(path) == str(pathlib.Path(local_testdir))