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

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

Issue 602: range: lean and mean (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Left Patch Set: __len__ is back! Created 1 year, 7 months ago
Right Patch Set: address more concerns Created 1 year, 7 months ago , Downloaded from: http://bugs.python.org/file10183/range_lean_and_mean5.patch
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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import unittest 3 import unittest
4 import random 4 import random
5 import time 5 import time
6 import pickle 6 import pickle
7 import warnings 7 import warnings
8 from math import log, exp, sqrt, pi 8 from math import log, exp, sqrt, pi
9 from test import test_support 9 from test import test_support
10 10
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 import sys 480 import sys
481 if verbose and hasattr(sys, "gettotalrefcount"): 481 if verbose and hasattr(sys, "gettotalrefcount"):
482 counts = [None] * 5 482 counts = [None] * 5
483 for i in range(len(counts)): 483 for i in range(len(counts)):
484 test_support.run_unittest(*testclasses) 484 test_support.run_unittest(*testclasses)
485 counts[i] = sys.gettotalrefcount() 485 counts[i] = sys.gettotalrefcount()
486 print(counts) 486 print(counts)
487 487
488 if __name__ == "__main__": 488 if __name__ == "__main__":
489 test_main(verbose=True) 489 test_main(verbose=True)
LEFTRIGHT

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