Skip to content

Commit

Permalink
Enable PathLib tests under pypy-3.10
Browse files Browse the repository at this point in the history
Per #41, this is now fixed in pypy 3.10, so we can enable the tests to prevent regressions.
  • Loading branch information
iustin committed Feb 6, 2024
1 parent c7d7088 commit 955d065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_xattr.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def as_iostream(call):

NOT_BEFORE_36 = pytest.mark.xfail(condition="sys.version_info < (3,6)",
strict=True)
NOT_PYPY = pytest.mark.xfail(condition="platform.python_implementation() == 'PyPy'",
NOT_OLD_PYPY = pytest.mark.xfail(condition="platform.python_implementation() == 'PyPy' and sys.version_info < (3, 10)",
strict=False)

NOT_MACOSX = pytest.mark.xfail(condition="sys.platform.startswith('darwin')",
Expand All @@ -161,18 +161,18 @@ def as_iostream(call):
(get_file_name, False),
(as_bytes(get_file_name), False),
pytest.param((as_fspath(get_file_name), False),
marks=[NOT_BEFORE_36, NOT_PYPY]),
marks=[NOT_BEFORE_36, NOT_OLD_PYPY]),
(get_file_fd, False),
(get_file_object, False),
(as_iostream(get_file_name), False),
(get_dir, False),
(as_bytes(get_dir), False),
pytest.param((as_fspath(get_dir), False),
marks=[NOT_BEFORE_36, NOT_PYPY]),
marks=[NOT_BEFORE_36, NOT_OLD_PYPY]),
(get_valid_symlink, False),
(as_bytes(get_valid_symlink), False),
pytest.param((as_fspath(get_valid_symlink), False),
marks=[NOT_BEFORE_36, NOT_PYPY]),
marks=[NOT_BEFORE_36, NOT_OLD_PYPY]),
]

ITEMS_D = [
Expand Down

0 comments on commit 955d065

Please sign in to comment.