fix test after rebase, fix typos in readme

This commit is contained in:
Grzegorz Bokota
2020-03-07 18:18:01 +01:00
parent baba7706e0
commit 79cf7e47ae
7 changed files with 9 additions and 227 deletions
@@ -1,6 +1,7 @@
import os
import utils
def test():
project_dir = os.path.dirname(__file__)
@@ -1,5 +1,4 @@
from setuptools import setup, Extension
import sys, os
setup(
@@ -1,4 +1,5 @@
import sys, os
import sys
import os
from unittest import TestCase
@@ -21,5 +22,7 @@ class TestBeforeTest(TestCase):
stored_executable = f.read()
print('stored_executable', stored_executable)
print('sys.executable', sys.executable)
# windows/mac are case insensitive
assert os.path.realpath(stored_executable).lower() == os.path.realpath(sys.executable).lower()
# Works around path-comparison bugs caused by short-paths on Windows e.g.
# vssadm~1 instead of vssadministrator
assert os.stat(stored_executable) == os.stat(sys.executable)