[Python-3000-checkins] r55509 - python/branches/py3k-struni/Lib/test/test_sys.py
walter.doerwald
python-3000-checkins at python.org
Tue May 22 18:13:55 CEST 2007
Author: walter.doerwald
Date: Tue May 22 18:13:46 2007
New Revision: 55509
Modified:
python/branches/py3k-struni/Lib/test/test_sys.py
Log:
Remove tests for have_unicode.
Modified: python/branches/py3k-struni/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_sys.py (original)
+++ python/branches/py3k-struni/Lib/test/test_sys.py Tue May 22 18:13:46 2007
@@ -169,12 +169,10 @@
"raise SystemExit(47)"])
self.assertEqual(rc, 47)
-
def test_getdefaultencoding(self):
- if test.test_support.have_unicode:
- self.assertRaises(TypeError, sys.getdefaultencoding, 42)
- # can't check more than the type, as the user might have changed it
- self.assert_(isinstance(sys.getdefaultencoding(), basestring))
+ self.assertRaises(TypeError, sys.getdefaultencoding, 42)
+ # can't check more than the type, as the user might have changed it
+ self.assert_(isinstance(sys.getdefaultencoding(), basestring))
# testing sys.settrace() is done in test_trace.py
# testing sys.setprofile() is done in test_profile.py
@@ -328,8 +326,7 @@
self.assert_(isinstance(sys.executable, basestring))
self.assert_(isinstance(sys.hexversion, int))
self.assert_(isinstance(sys.maxint, int))
- if test.test_support.have_unicode:
- self.assert_(isinstance(sys.maxunicode, int))
+ self.assert_(isinstance(sys.maxunicode, int))
self.assert_(isinstance(sys.platform, basestring))
self.assert_(isinstance(sys.prefix, basestring))
self.assert_(isinstance(sys.version, basestring))
More information about the Python-3000-checkins
mailing list