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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 6 years, 2 months ago
Right Patch Set: Created 5 years, 11 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_shutil.py ('k') | Lib/test/test_socket.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Hide Comments ('s')
LEFTRIGHT
1 # tests for slice objects; in particular the indices method. 1 # tests for slice objects; in particular the indices method.
2 2
3 import unittest 3 import unittest
4 from test import support 4 from test import support
5 from pickle import loads, dumps 5 from pickle import loads, dumps
6 6
7 import itertools 7 import itertools
8 import operator 8 import operator
9 import sys 9 import sys
10 10
(...skipping 227 matching lines...)
238 t = loads(dumps(s, protocol)) 238 t = loads(dumps(s, protocol))
239 self.assertEqual(s, t) 239 self.assertEqual(s, t)
240 self.assertEqual(s.indices(15), t.indices(15)) 240 self.assertEqual(s.indices(15), t.indices(15))
241 self.assertNotEqual(id(s), id(t)) 241 self.assertNotEqual(id(s), id(t))
242 242
243 def test_main(): 243 def test_main():
244 support.run_unittest(SliceTest) 244 support.run_unittest(SliceTest)
245 245
246 if __name__ == "__main__": 246 if __name__ == "__main__":
247 test_main() 247 test_main()
LEFTRIGHT

This is Rietveld 894c83f36cb7+