| LEFT | RIGHT |
| 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) |
| LEFT | RIGHT |