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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 10 months ago
Right Patch Set: Created 5 years, 7 months ago
 Left: Base Patch Set 1: None Patch Set 2: None Patch Set 3: None Patch Set 4: None Patch Set 5: None Right: Patch Set 1: None Patch Set 2: None Patch Set 3: None Patch Set 4: None Patch Set 5: None
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') | 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...)
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

This is Rietveld 894c83f36cb7+