Commit bec754c2 authored by Collin Winter's avatar Collin Winter

Remove functionality from test_datetime.test_main() that does reference count...

Remove functionality from test_datetime.test_main() that does reference count checking; 'regrtest.py -R' is the way to do this kind of testing.
parent c2898c5a
......@@ -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
if __name__ == "__main__":
test_main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment