os.path.samefile is not available on windows.

This commit is contained in:
Joe Rickerby
2017-09-06 22:33:01 +01:00
parent b64a1c1465
commit aca294f5bb
+2 -1
View File
@@ -17,7 +17,8 @@ if sys.argv[-1] != '--name':
stored_executable = f.read()
print('stored_executable', stored_executable)
print('sys.executable', sys.executable)
assert os.path.samefile(stored_executable, sys.executable)
# windows/mac are case insensitive
assert os.path.realpath(stored_executable).lower() == os.path.realpath(sys.executable).lower()
setup(
name="spam",