From: Martin v. Löwis Date: Mon, 3 Apr 2006 11:05:39 +0000 (+0000) Subject: Add test case for #43581. X-Git-Tag: v2.5a1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cd7a26d4f1417c53badaf70ec4d09aeadf3693;p=thirdparty%2FPython%2Fcpython.git Add test case for #43581. --- diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b98c64885e4e..ae2a1c81e25a 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -261,6 +261,11 @@ class SysModuleTest(unittest.TestCase): self.assert_(vi[3] in ("alpha", "beta", "candidate", "final")) self.assert_(isinstance(vi[4], int)) + def test_43581(self): + # Can't use sys.stdout, as this is a cStringIO object when + # the test runs under regrtest. + self.assert_(sys.__stdout__.encoding == sys.__stderr__.encoding) + def test_main(): test.test_support.run_unittest(SysModuleTest)