Neaten ref count test.
authorRaymond Hettinger <python@rcn.com>
Sat, 1 Feb 2003 02:33:45 +0000 (02:33 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 1 Feb 2003 02:33:45 +0000 (02:33 +0000)
Lib/test/test_itertools.py

index c096e16a4cab0864557fa4fcf779f81add2900f0..12393010f5e4bd7a52759ff35efbec2dc57d0347 100644 (file)
@@ -151,7 +151,7 @@ def test_main(verbose=None):
         counts = []
         for i in xrange(5):
             test_support.run_suite(suite)
-            counts.append(sys.gettotalrefcount())
+            counts.append(sys.gettotalrefcount()-i)
         print counts
 
 if __name__ == "__main__":