Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix a condition in a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 20, 2014
1 parent 824736d commit b89611c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions _unittests/ut_custom_install/test_scite.py
Expand Up @@ -33,12 +33,14 @@ def test_install(self) :
if os.path.isfile(os.path.join(temp,_)) :
os.remove(os.path.join(temp,_))

exe = install_scite(temp, fLOG = fLOG)
exe = os.path.abspath(install_scite(temp, fLOG = fLOG))
assert os.path.exists(exe)
conf = exe.replace("SciTE.exe", "python.properties")
assert os.path.exists(conf)
with open(conf,"r") as f : content = f.read()
assert sys.executable in content
with open(conf,"r") as f : content = f.read().lower()
if sys.executable.lower() not in content and \
sys.executable.lower().replace(".exe", "w.exe") not in content:
raise Exception("{0} or {1} not in \n{2}".format(sys.executable, sys.executable.replace(".exe", "w.exe"), content))



Expand Down

0 comments on commit b89611c

Please sign in to comment.