]> granicus.if.org Git - python/commitdiff
Remove functionality from test_datetime.test_main() that does reference count checkin...
authorCollin Winter <collinw@gmail.com>
Wed, 25 Apr 2007 17:37:35 +0000 (17:37 +0000)
committerCollin Winter <collinw@gmail.com>
Wed, 25 Apr 2007 17:37:35 +0000 (17:37 +0000)
Lib/test/test_datetime.py

index 72391afec71a191b099047a03b99f66323ec747b..f55a796ed093b331ea2b776b7b6f0601105b92ea 100644 (file)
@@ -3249,26 +3249,7 @@ class Oddballs(unittest.TestCase):
         self.assertEqual(datetime_sc, as_datetime)
 
 def test_main():
-    import gc
-    import sys
-
-    lastrc = None
-    while True:
-        test_support.run_unittest(__name__)
-        if 1:       # change to 0, under a debug build, for some leak detection
-            break
-        gc.collect()
-        if gc.garbage:
-            raise SystemError("gc.garbage not empty after test run: %r" %
-                              gc.garbage)
-        if hasattr(sys, 'gettotalrefcount'):
-            thisrc = sys.gettotalrefcount()
-            print >> sys.stderr, '*' * 10, 'total refs:', thisrc,
-            if lastrc:
-                print >> sys.stderr, 'delta:', thisrc - lastrc
-            else:
-                print >> sys.stderr
-            lastrc = thisrc
+    test_support.run_unittest(__name__)
 
 if __name__ == "__main__":
     test_main()