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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 7 years ago
Right Patch Set: Created 5 years, 10 months ago
Left:
Right:
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
« no previous file with change/comment | « Lib/test/test_inspect.py ('k') | Lib/test/test_itertools.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Test iterators. 1 # Test iterators.
2 2
3 import unittest 3 import unittest
4 from test.support import run_unittest, TESTFN, unlink, cpython_only 4 from test.support import run_unittest, TESTFN, unlink, cpython_only
5 import pickle 5 import pickle
6 import collections.abc 6 import collections.abc
7 7
8 # Test result of triple loop (too big to inline) 8 # Test result of triple loop (too big to inline)
9 TRIPLETS = [(0, 0, 0), (0, 0, 1), (0, 0, 2), 9 TRIPLETS = [(0, 0, 0), (0, 0, 1), (0, 0, 2),
10 (0, 1, 0), (0, 1, 1), (0, 1, 2), 10 (0, 1, 0), (0, 1, 1), (0, 1, 2),
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 lst.extend(gen()) 918 lst.extend(gen())
919 self.assertEqual(len(lst), 760) 919 self.assertEqual(len(lst), 760)
920 920
921 921
922 def test_main(): 922 def test_main():
923 run_unittest(TestCase) 923 run_unittest(TestCase)
924 924
925 925
926 if __name__ == "__main__": 926 if __name__ == "__main__":
927 test_main() 927 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+