diff options
author | Guido van Rossum <guido@python.org> | 2007-05-15 22:32:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-15 22:32:02 (GMT) |
commit | af2362a584c01dec32d7f1a23d3e6f653f11dde4 (patch) | |
tree | a45f677c993a90f5a1753c64da6a87376a6f480b /Lib/test/test_sys.py | |
parent | 7f21d306d4ae858d6e861393b895fcc281438b01 (diff) | |
download | cpython-af2362a584c01dec32d7f1a23d3e6f653f11dde4.zip cpython-af2362a584c01dec32d7f1a23d3e6f653f11dde4.tar.gz cpython-af2362a584c01dec32d7f1a23d3e6f653f11dde4.tar.bz2 |
Make test_sys pass.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 36cca2c..af4c2a7 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -174,7 +174,7 @@ class SysModuleTest(unittest.TestCase): 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(), str)) + self.assert_(isinstance(sys.getdefaultencoding(), basestring)) # testing sys.settrace() is done in test_trace.py # testing sys.setprofile() is done in test_profile.py @@ -349,7 +349,7 @@ class SysModuleTest(unittest.TestCase): def test_intern(self): self.assertRaises(TypeError, sys.intern) - s = "never interned before" + s = str8("never interned before") self.assert_(sys.intern(s) is s) s2 = s.swapcase().swapcase() self.assert_(sys.intern(s2) is s) |