summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-12 00:59:11 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-11-12 00:59:11 (GMT)
commite25576467b37c78aac4b350b8f1561b64634e613 (patch)
treef26d8d76d807014d3504ba4ab7badc793cbd2396
parentf4b27124d28f8d15599875bac4424458d7879736 (diff)
downloadcpython-e25576467b37c78aac4b350b8f1561b64634e613.zip
cpython-e25576467b37c78aac4b350b8f1561b64634e613.tar.gz
cpython-e25576467b37c78aac4b350b8f1561b64634e613.tar.bz2
Enable this test only when subprocess supports non-ascii arguments.
(it is about parsing the python command line arguments, not about subprocess)
-rw-r--r--Lib/test/test_cmd_line.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index 1277df3..e8db7d0 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -136,12 +136,11 @@ class CmdLineTest(unittest.TestCase):
0)
# Test handling of non-ascii data
- if test.support.verbose:
- print("FileSystemEncoding:", sys.getfilesystemencoding())
- command = "assert(ord('\xe9') == 0xe9)"
- self.assertEqual(
- self.exit_code('-c', command),
- 0)
+ if sys.getfilesystemencoding() != 'ascii':
+ command = "assert(ord('\xe9') == 0xe9)"
+ self.assertEqual(
+ self.exit_code('-c', command),
+ 0)
def test_main():