diff options
author | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 (GMT) |
commit | 39478e852827a4ca6955151bf004c7a15099a4b1 (patch) | |
tree | 05e52988c7904b7c7dad9427411bece5f9c45fcb /Lib/ctypes/test | |
parent | 85825dc1ff5cc21c5f3f453b30b825a7200609cb (diff) | |
download | cpython-39478e852827a4ca6955151bf004c7a15099a4b1.zip cpython-39478e852827a4ca6955151bf004c7a15099a4b1.tar.gz cpython-39478e852827a4ca6955151bf004c7a15099a4b1.tar.bz2 |
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_internals.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_internals.py b/Lib/ctypes/test/test_internals.py index 520ff87..c6a51a7 100644 --- a/Lib/ctypes/test/test_internals.py +++ b/Lib/ctypes/test/test_internals.py @@ -76,11 +76,13 @@ class ObjectsTestCase(unittest.TestCase): x = X() x.a = s1 x.b = s2 - self.failUnlessEqual(x._objects, {"0": bytes(s1), "1": bytes(s2)}) + self.failUnlessEqual(x._objects, {"0": bytes(s1, "ascii"), + "1": bytes(s2, "ascii")}) y = Y() y.x = x - self.failUnlessEqual(y._objects, {"0": {"0": bytes(s1), "1": bytes(s2)}}) + self.failUnlessEqual(y._objects, {"0": {"0": bytes(s1, "ascii"), + "1": bytes(s2, "ascii")}}) ## x = y.x ## del y ## print x._b_base_._objects |