summaryrefslogtreecommitdiff
path: root/test/test_command_line.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-04-09 21:14:53 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2011-04-09 21:14:53 +0000
commit664ddb50780abaa19bc5f63927ad28eceb29c398 (patch)
treefd21b6276ad2f6088f11872fac286778e52d194b /test/test_command_line.py
parent5fe5a46cdea873366919b84314e7e357d577f74b (diff)
downloaddocutils-664ddb50780abaa19bc5f63927ad28eceb29c398.tar.gz
One more fix to the command line test
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7005 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_command_line.py')
-rw-r--r--test/test_command_line.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_command_line.py b/test/test_command_line.py
index 6963aa118..f7e693851 100644
--- a/test/test_command_line.py
+++ b/test/test_command_line.py
@@ -39,9 +39,8 @@ class CommandLineEncodingTests(unittest.TestCase):
# self.assertEqual(sys.argv[0].encoding,
# locale.getpreferredencoding())
# so instead, we check if a command line with non-ASCII char works
-
- cmd_str = (u'python %s/mini_frontend.py --title=Dornröschen' %
- normpath(dirname(__file__) + ''))
+ cmd_str = (u'%s %s/mini_frontend.py --title=Dornröschen' %
+ (sys.executable, normpath(dirname(__file__) + '')))
p = subprocess.Popen([cmd_str.encode(argv_encoding)], shell=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
p.stdin.close()