Skip to content

Commit ba7bdb4

Browse files
committed
apply review suggestion
use `os.path.samefile` rather than comparing `os.stat` directly.
1 parent 993d1e1 commit ba7bdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_before_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
print('sys.prefix', sys.prefix)
2626
# Works around path-comparison bugs caused by short-paths on Windows e.g.
2727
# vssadm~1 instead of vssadministrator
28-
assert os.stat(stored_prefix) != os.stat(sys.prefix)
28+
assert not os.path.samefile(stored_prefix, sys.prefix)
2929
"""
3030
)
3131
)

0 commit comments

Comments
 (0)