diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descrtut.py | 6 | ||||
-rw-r--r-- | Lib/test/test_repr.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py index e72567d..a0de4cc 100644 --- a/Lib/test/test_descrtut.py +++ b/Lib/test/test_descrtut.py @@ -37,16 +37,16 @@ test_1 = """ Here's the new type at work: >>> print defaultdict # show our type - <type 'test.test_descrtut.defaultdict'> + <class 'test.test_descrtut.defaultdict'> >>> print type(defaultdict) # its metatype <type 'type'> >>> a = defaultdict(default=0.0) # create an instance >>> print a # show the instance {} >>> print type(a) # show its type - <type 'test.test_descrtut.defaultdict'> + <class 'test.test_descrtut.defaultdict'> >>> print a.__class__ # show its class - <type 'test.test_descrtut.defaultdict'> + <class 'test.test_descrtut.defaultdict'> >>> print type(a) is a.__class__ # its type is its class 1 >>> a[1] = 3.25 # modify the instance diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py index b7d9374..1c63e4d 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 |