diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-03 11:05:39 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-03 11:05:39 (GMT) |
| commit | a8cd7a26d4f1417c53badaf70ec4d09aeadf3693 (patch) | |
| tree | 6b2d55f70e50ddf0ac7981c29fd9da554fc6fdfb /Lib/test/test_sys.py | |
| parent | ea62d2535f6160d5b4306ea060f5da05cfa7e9ab (diff) | |
| download | cpython-a8cd7a26d4f1417c53badaf70ec4d09aeadf3693.zip cpython-a8cd7a26d4f1417c53badaf70ec4d09aeadf3693.tar.gz cpython-a8cd7a26d4f1417c53badaf70ec4d09aeadf3693.tar.bz2 | |
Add test case for #43581.
Diffstat (limited to 'Lib/test/test_sys.py')
| -rw-r--r-- | Lib/test/test_sys.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b98c648..ae2a1c8 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) |
