Skip to content

Commit

Permalink
tests: xfail non-applicable __new__ test
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Oct 3, 2023
1 parent b1b7565 commit f9b24cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upath/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f9b24cf

Please sign in to comment.