[Jython-checkins] jython: Tweak test_file2k test_unicode for Jython on Windows (\n -> ;).
jeff.allen
jython-checkins at python.org
Wed Feb 19 23:48:03 CET 2014
http://hg.python.org/jython/rev/409c52e174f4
changeset: 7182:409c52e174f4
user: Jeff Allen <ja.py at farowl.co.uk>
date: Fri Feb 14 22:52:20 2014 +0000
summary:
Tweak test_file2k test_unicode for Jython on Windows (\n -> ;).
The test relates to PYTHONIOENCODING but incidentally requires a -c command be passed
containing newlines. Use of jython.bat wrapper seems to preclude this.
files:
Lib/test/test_file2k.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_file2k.py b/Lib/test/test_file2k.py
--- a/Lib/test/test_file2k.py
+++ b/Lib/test/test_file2k.py
@@ -711,12 +711,11 @@
finally:
sys.stdout = save_stdout
- @unittest.skipIf(test_support.is_jython, "FIXME: Not working on Jython")
def test_unicode(self):
import subprocess
def get_message(encoding, *code):
- code = '\n'.join(code)
+ code = ';'.join(code) # jython.bat cannot cope with '\n' in arguments
env = os.environ.copy()
env['PYTHONIOENCODING'] = encoding
process = subprocess.Popen([sys.executable, "-c", code],
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list