[Python-checkins] r43582 - python/trunk/Lib/test/test_sys.py
martin.v.loewis
python-checkins at python.org
Mon Apr 3 13:05:39 CEST 2006
Author: martin.v.loewis
Date: Mon Apr 3 13:05:39 2006
New Revision: 43582
Modified:
python/trunk/Lib/test/test_sys.py
Log:
Add test case for #43581.
Modified: python/trunk/Lib/test/test_sys.py
==============================================================================
--- python/trunk/Lib/test/test_sys.py (original)
+++ python/trunk/Lib/test/test_sys.py Mon Apr 3 13:05:39 2006
@@ -261,6 +261,11 @@
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)
More information about the Python-checkins
mailing list