summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-22 16:13:46 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-22 16:13:46 (GMT)
commit4aeaa9658f123b614fd5290a6c8196e93c1c7367 (patch)
tree5a1cfa4535c7d1b797a87e7f67a17191e0ca51be /Lib/test/test_sys.py
parente9eaab448bc88f96a6a28a589577dbfd7035027f (diff)
downloadcpython-4aeaa9658f123b614fd5290a6c8196e93c1c7367.zip
cpython-4aeaa9658f123b614fd5290a6c8196e93c1c7367.tar.gz
cpython-4aeaa9658f123b614fd5290a6c8196e93c1c7367.tar.bz2
Remove tests for have_unicode.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index af4c2a7..4118da4 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -169,12 +169,10 @@ class SysModuleTest(unittest.TestCase):
"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 @@ class SysModuleTest(unittest.TestCase):
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))