summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-04-25 17:37:35 +0000
committerCollin Winter <collinw@gmail.com>2007-04-25 17:37:35 +0000
commit8b977d8906cb028a474fa6c6f20b9054c2b7282a (patch)
tree5b97759ea145f98fc2cf317c35647af6b14c6efe /Lib/test/test_datetime.py
parentdab26405e88f847ad2db6ceba78e7357ef13f81b (diff)
downloadcpython-8b977d8906cb028a474fa6c6f20b9054c2b7282a.tar.gz
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/test/test_datetime.py')
-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 72391afec7..f55a796ed0 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()