summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 (GMT)
commit250ad613f3ae7e237e28d3a7a15a9b6fac16129f (patch)
tree5484e62a1ee0b0d9b7008cad32ab33392db7e78e /Lib/ctypes
parent5a6f4585fdc52959bcc0dfdb9d25f2d34f983300 (diff)
downloadcpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.zip
cpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.tar.gz
cpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.tar.bz2
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_structures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py
index c4eee86..3587f0f 100644
--- a/Lib/ctypes/test/test_structures.py
+++ b/Lib/ctypes/test/test_structures.py
@@ -307,14 +307,14 @@ class StructureTestCase(unittest.TestCase):
cls, msg = self.get_except(Person, "Someone", (1, 2))
self.failUnlessEqual(cls, RuntimeError)
self.failUnlessEqual(msg,
- "(Phone) <type 'TypeError'>: "
+ "(Phone) <class 'TypeError'>: "
"expected string, int found")
cls, msg = self.get_except(Person, "Someone", ("a", "b", "c"))
self.failUnlessEqual(cls, RuntimeError)
if issubclass(Exception, object):
self.failUnlessEqual(msg,
- "(Phone) <type 'TypeError'>: too many initializers")
+ "(Phone) <class 'TypeError'>: too many initializers")
else:
self.failUnlessEqual(msg, "(Phone) TypeError: too many initializers")