summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-16 23:16:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-16 23:16:36 (GMT)
commit929f06c5709fe755d8fe519676c5642cfa50ade8 (patch)
tree0726e1302adfe9983de95350e071a85217881d95
parent4c530130302ee74c49dfd44f5068c563af1aeb30 (diff)
downloadcpython-929f06c5709fe755d8fe519676c5642cfa50ade8.zip
cpython-929f06c5709fe755d8fe519676c5642cfa50ade8.tar.gz
cpython-929f06c5709fe755d8fe519676c5642cfa50ade8.tar.bz2
Minor cleanups.
-rw-r--r--Lib/test/test_itertools.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 7a4fa20..d9c1c41 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -201,7 +201,6 @@ Check 1201 is for $764.05
Check 1202 is for $823.14
>>> import operator
->>> import operator
>>> for cube in imap(operator.pow, xrange(1,4), repeat(3)):
... print cube
...
@@ -303,7 +302,6 @@ False
>>> dotproduct([1,2,3], [4,5,6])
32
-
"""
__test__ = {'libreftest' : libreftest}
@@ -312,7 +310,6 @@ def test_main(verbose=None):
test_support.run_unittest(TestBasicOps)
# verify reference counting
- import sys
if verbose and hasattr(sys, "gettotalrefcount"):
counts = [None] * 5
for i in xrange(len(counts)):
@@ -321,8 +318,7 @@ def test_main(verbose=None):
print counts
# doctest the examples in the library reference
- import doctest
- doctest.testmod(sys.modules[__name__])
+ test_support.run_doctest(sys.modules[__name__], verbose)
if __name__ == "__main__":
test_main(verbose=True)