summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-24 18:55:37 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-24 18:55:37 (GMT)
commitbd1c68c94f0d5bc25b48f62c7527f51c754f2b6b (patch)
treea468fcccf4193f6d26ce71246e2596de6ffc9eec /Lib/test/test_sys.py
parent97f9d4f31224e72e5c714ea7e509c4fd0044f0e2 (diff)
downloadcpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.zip
cpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.tar.gz
cpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.tar.bz2
Patch #1303: Adapt str8 constructor to bytes (now buffer) one.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index ddf1876..8741830 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -300,7 +300,7 @@ class SysModuleTest(unittest.TestCase):
def test_intern(self):
self.assertRaises(TypeError, sys.intern)
- s = str8("never interned before")
+ s = str8(b"never interned before")
self.assert_(sys.intern(s) is s)
s2 = s.swapcase().swapcase()
self.assert_(sys.intern(s2) is s)
@@ -314,7 +314,7 @@ class SysModuleTest(unittest.TestCase):
def __hash__(self):
return 123
- self.assertRaises(TypeError, sys.intern, S("abc"))
+ self.assertRaises(TypeError, sys.intern, S(b"abc"))
s = "never interned as unicode before"
self.assert_(sys.intern(s) is s)