diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-06-04 23:21:13 (GMT) |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-06-04 23:21:13 (GMT) |
commit | 5801ecb4408cd11f6e6ffcb1612ca68d9936a728 (patch) | |
tree | d50a9aa79b55eb92dde2c12908d6ecb14fc7f1d5 /Lib/test/test_metaclass.py | |
parent | 409482251b06fe75c4ee56e85ffbb4b23d934159 (diff) | |
download | cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.zip cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.tar.gz cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.tar.bz2 |
Issue #25548: Showing memory address of class objects in repl
Diffstat (limited to 'Lib/test/test_metaclass.py')
-rw-r--r-- | Lib/test/test_metaclass.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_metaclass.py b/Lib/test/test_metaclass.py index e6fe20a..be683dd 100644 --- a/Lib/test/test_metaclass.py +++ b/Lib/test/test_metaclass.py @@ -78,7 +78,7 @@ Also pass another keyword. >>> class C(object, metaclass=M, other="haha"): ... pass ... - Prepare called: ('C', (<class 'object'>,)) {'other': 'haha'} + Prepare called: ('C', (<class 'object' ...>,)) {'other': 'haha'} New called: {'other': 'haha'} >>> C.__class__ is M True @@ -104,7 +104,7 @@ Use various combinations of explicit keywords and **kwds. >>> kwds = {'metaclass': M, 'other': 'haha'} >>> class C(*bases, **kwds): pass ... - Prepare called: ('C', (<class 'object'>,)) {'other': 'haha'} + Prepare called: ('C', (<class 'object' ...>,)) {'other': 'haha'} New called: {'other': 'haha'} >>> C.__class__ is M True @@ -114,7 +114,7 @@ Use various combinations of explicit keywords and **kwds. >>> kwds = {'other': 'haha'} >>> class C(B, metaclass=M, *bases, **kwds): pass ... - Prepare called: ('C', (<class 'test.test_metaclass.B'>, <class 'object'>)) {'other': 'haha'} + Prepare called: ('C', (<class 'test.test_metaclass.B' ...>, <class 'object' ...>)) {'other': 'haha'} New called: {'other': 'haha'} >>> C.__class__ is M True @@ -259,7 +259,8 @@ else: def test_main(verbose=False): from test import support from test import test_metaclass - support.run_doctest(test_metaclass, verbose) + import doctest + support.run_doctest(test_metaclass, verbose, optionflags=doctest.ELLIPSIS) if __name__ == "__main__": test_main(verbose=True) |