summaryrefslogtreecommitdiff
path: root/Lib/test/test_repr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-25 03:56:29 +0000
committerGuido van Rossum <guido@python.org>2001-09-25 03:56:29 +0000
commite3c7abc03f2750288fd9191426469f222a205575 (patch)
tree5672a74dfd1aaf013fcd7faf6385d3f667e7ce43 /Lib/test/test_repr.py
parent38e5222a3cb1b521e9164e840c6b5fb8aca9e9eb (diff)
downloadcpython-e3c7abc03f2750288fd9191426469f222a205575.tar.gz
Change repr() of a new-style class to say <class 'ClassName'> rather
than <type 'ClassName'>. Exception: if it's a built-in type or an extension type, continue to call it <type 'ClassName>. Call me a wimp, but I don't want to break more user code than necessary.
Diffstat (limited to 'Lib/test/test_repr.py')
-rw-r--r--Lib/test/test_repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index b7d937481d..1c63e4dc2c 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -208,7 +208,7 @@ class foo(object):
''')
from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import foo
eq(repr(foo.foo),
- "<type 'areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation.foo.foo'>")
+ "<class 'areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation.foo.foo'>")
def test_object(self):
# XXX Test the repr of a type with a really long tp_name but with no