Skip to content

Commit 3326125

Browse files
committed
tests: better check for lchmod test
1 parent c14d656 commit 3326125

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

upath/tests/test_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_cwd(self):
132132
type(self.path).cwd()
133133

134134
def test_lchmod(self):
135-
if hasattr(os, "lchmod") and os.lchmod in os.supports_follow_symlinks:
135+
if hasattr(os, "lchmod") and os.chmod in os.supports_follow_symlinks:
136136
cm = nullcontext()
137137
else:
138138
cm = pytest.raises(UnsupportedOperation)

0 commit comments

Comments
 (0)