mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Remove tests for have_unicode.
This commit is contained in:
parent
e9eaab448b
commit
4aeaa9658f
1 changed files with 4 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue