[Python-checkins] python/dist/src/Lib/test test_itertools.py,1.10,1.11
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Fri, 16 May 2003 16:16:38 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv10859
Modified Files:
test_itertools.py
Log Message:
Minor cleanups.
Index: test_itertools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_itertools.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_itertools.py 3 May 2003 05:59:48 -0000 1.10
--- test_itertools.py 16 May 2003 23:16:36 -0000 1.11
***************
*** 202,206 ****
>>> import operator
- >>> import operator
>>> for cube in imap(operator.pow, xrange(1,4), repeat(3)):
... print cube
--- 202,205 ----
***************
*** 304,308 ****
32
-
"""
--- 303,306 ----
***************
*** 313,317 ****
# verify reference counting
- import sys
if verbose and hasattr(sys, "gettotalrefcount"):
counts = [None] * 5
--- 311,314 ----
***************
*** 322,327 ****
# doctest the examples in the library reference
! import doctest
! doctest.testmod(sys.modules[__name__])
if __name__ == "__main__":
--- 319,323 ----
# doctest the examples in the library reference
! test_support.run_doctest(sys.modules[__name__], verbose)
if __name__ == "__main__":