]> granicus.if.org Git - python/commitdiff
Temporarily print some information in test_cmd_line,
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 12 Nov 2008 00:13:45 +0000 (00:13 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 12 Nov 2008 00:13:45 +0000 (00:13 +0000)
to understand why the test fails on some platforms.

Lib/test/test_cmd_line.py

index fc0e3a728a649d6c0ddedc6fd141ddf8659c0a15..1277df3ffe1ef12ed8c92aeb281cbc9bfa43dde2 100644 (file)
@@ -136,6 +136,8 @@ 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),