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:
hannut91 committed 2019-06-29 14:58:44 +09:00
1 parent 212522a4bb
commit 1dc5daa4d8
1 file changed
+1 -1
+1 -1
View File
@@ -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