summaryrefslogtreecommitdiff
path: root/test/test_command_line.py
diff options
context:
space:
mode:
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()