Skip to content

Commit

Permalink
Fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Jul 18, 2017
1 parent 4f7c08c commit 5c254ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions enchant/tests.py
Expand Up @@ -538,12 +538,9 @@ def runtests(self):
os.environ["PYTHONPATH"] = insdir
testCmd = "import enchant, os; " \
"from os.path import abspath; " \
"import sys; from enchant.utils import printf; " \
"printf(abspath(enchant.__file__), file=sys.stderr); " \
"printf(abspath(os.curdir), file=sys.stderr); " \
"assert abspath(os.curdir) in abspath(enchant.__file__); " \
"enchant._runtestsuite()"
res = runcmd("\"%s\" -c %r" % (sys.executable, testCmd), cwd=insdir)
res = runcmd("\"%s\" -c \"%s\"" % (sys.executable, testCmd), cwd=insdir)
self.assertEqual(res,0)

def test_basic(self):
Expand Down

0 comments on commit 5c254ab

Please sign in to comment.