From 299530d1cd9a023cc4df67f87d8445aaa8013def Mon Sep 17 00:00:00 2001 From: milde Date: Sat, 9 Apr 2011 21:14:53 +0000 Subject: [PATCH] One more fix to the command line test git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk/docutils@7005 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- test/mini_frontend.py | 1 + test/test_command_line.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mini_frontend.py b/test/mini_frontend.py index c32a94183..c38c7b4e4 100644 --- a/test/mini_frontend.py +++ b/test/mini_frontend.py @@ -14,6 +14,7 @@ A minimal Docutils front-end for testing the command line import sys, os testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir) sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..'))) +sys.path.append(os.path.normpath(os.path.join(testroot, '..', 'extras'))) from docutils.core import publish_cmdline 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() -- 2.11.4.GIT