summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-04-25 17:37:35 (GMT)
committerCollin Winter <collinw@gmail.com>2007-04-25 17:37:35 (GMT)
commitbec754c2b5d35d1d78aec86b0ffff229a74e55b6 (patch)
treef92b7c27790d0e1865e8740185101f558c02628f /Lib
parentc2898c5a678e6dd00c3e0b18a214fcd7a3533800 (diff)
downloadcpython-bec754c2b5d35d1d78aec86b0ffff229a74e55b6.zip
cpython-bec754c2b5d35d1d78aec86b0ffff229a74e55b6.tar.gz
cpython-bec754c2b5d35d1d78aec86b0ffff229a74e55b6.tar.bz2
Remove functionality from test_datetime.test_main() that does reference count checking; 'regrtest.py -R' is the way to do this kind of testing.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_datetime.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 72391af..f55a796 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -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()