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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 5 years, 6 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_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') | Show Comments 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...) Expand 10 before | Expand all | Expand 10 after
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

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