We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7a57a commit 849e3adCopy full SHA for 849e3ad
testing/test_pathlib.py
@@ -4,6 +4,7 @@
4
import py
5
6
import pytest
7
+from _pytest.pathlib import create_long_path
8
from _pytest.pathlib import fnmatch_ex
9
from _pytest.pathlib import get_lock_path
10
from _pytest.pathlib import maybe_delete_a_numbered_dir
@@ -101,4 +102,5 @@ def test_long_path_during_cleanup(tmp_path):
101
102
103
lock_path = get_lock_path(path)
104
maybe_delete_a_numbered_dir(path)
- assert not lock_path.is_file()
105
+ # is_file also fails on the long path
106
+ assert not os.path.exists(create_long_path(lock_path))
0 commit comments