mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Fix TestWithTempDir test to pass on Mac
Fix TestWithTmpeDir test that comapre os.getcwd() and tmpdir. os.getcwd() returns the result of resolving the symbolic link. But tmpdir absolute path. Testing fails on Mac because the /tmp directory is a symbolic link. Comparing the results of resolving tempdir will pass the test. But RustPython does not implement lstat, so it does not pass, but in CPython The test passes.
This commit is contained in:
1 parent
212522a4bb
commit
1dc5daa4d8
1 file changed
+1
-1
@@ -244,7 +244,7 @@ with TestWithTempDir() as tmpdir:
|
||||
|
||||
with TestWithTempCurrentDir():
|
||||
os.chdir(tmpdir)
|
||||
assert os.getcwd() == tmpdir
|
||||
assert os.getcwd() == os.path.realpath(tmpdir)
|
||||
os.path.exists(FILE_NAME)
|
||||
|
||||
# supports
|
||||
|
||||
Reference in new issue
Block a user