summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_genexps.py
diff options
context:
space:
mode:
authorKushal Das <kushaldas@gmail.com>2016-06-04 23:21:13 (GMT)
committerKushal Das <kushaldas@gmail.com>2016-06-04 23:21:13 (GMT)
commit5801ecb4408cd11f6e6ffcb1612ca68d9936a728 (patch)
treed50a9aa79b55eb92dde2c12908d6ecb14fc7f1d5 /Lib/test/test_genexps.py
parent409482251b06fe75c4ee56e85ffbb4b23d934159 (diff)
downloadcpython-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_genexps.py')
-rw-r--r--Lib/test/test_genexps.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py
index fb531d6..c5e10dd 100644
--- a/Lib/test/test_genexps.py
+++ b/Lib/test/test_genexps.py
@@ -27,7 +27,7 @@ Test first class
>>> g = (i*i for i in range(4))
>>> type(g)
- <class 'generator'>
+ <class 'generator' ...>
>>> list(g)
[0, 1, 4, 9]
@@ -269,7 +269,8 @@ else:
def test_main(verbose=None):
from test import support
from test import test_genexps
- support.run_doctest(test_genexps, verbose)
+ import doctest
+ support.run_doctest(test_genexps, verbose, optionflags=doctest.ELLIPSIS)
# verify reference counting
if verbose and hasattr(sys, "gettotalrefcount"):