Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(91)

Delta Between Two Patch Sets: Lib/test/test_heapq.py

Issue 602: range: lean and mean (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Left Patch Set: address more concerns Created 5 months, 1 week ago , Downloaded from: http://bugs.python.org/file10183/range_lean_and_mean5.patch
Right Patch Set: __len__ is back! Created 5 months, 1 week ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 """Unittests for heapq.""" 1 """Unittests for heapq."""
2 2
3 import random 3 import random
4 import unittest 4 import unittest
5 from test import test_support 5 from test import test_support
6 import sys 6 import sys
7 7
8 # We do a bit of trickery here to be able to test both the C implementation 8 # We do a bit of trickery here to be able to test both the C implementation
9 # and the Python implementation of the module. 9 # and the Python implementation of the module.
10 10
(...skipping 349 matching lines...) Show 10 above Show 10 below
360 import gc 360 import gc
361 counts = [None] * 5 361 counts = [None] * 5
362 for i in range(len(counts)): 362 for i in range(len(counts)):
363 test_support.run_unittest(*test_classes) 363 test_support.run_unittest(*test_classes)
364 gc.collect() 364 gc.collect()
365 counts[i] = sys.gettotalrefcount() 365 counts[i] = sys.gettotalrefcount()
366 print(counts) 366 print(counts)
367 367
368 if __name__ == "__main__": 368 if __name__ == "__main__":
369 test_main(verbose=True) 369 test_main(verbose=True)
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338