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

Delta Between Two Patch Sets: Lib/test/test_abc.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/pickletester.py ('k') | Lib/test/test_ast.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 # Copyright 2007 Google, Inc. All Rights Reserved. 1 # Copyright 2007 Google, Inc. All Rights Reserved.
2 # Licensed to PSF under a Contributor Agreement. 2 # Licensed to PSF under a Contributor Agreement.
3 3
4 """Unit tests for abc.py.""" 4 """Unit tests for abc.py."""
5 5
6 import unittest 6 import unittest
7 from test import support 7 from test import support
8 8
9 import abc 9 import abc
10 from inspect import isabstract 10 from inspect import isabstract
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 return super().__new__(cls) 399 return super().__new__(cls)
400 class C(A, B): 400 class C(A, B):
401 pass 401 pass
402 self.assertEqual(B.counter, 0) 402 self.assertEqual(B.counter, 0)
403 C() 403 C()
404 self.assertEqual(B.counter, 1) 404 self.assertEqual(B.counter, 1)
405 405
406 406
407 if __name__ == "__main__": 407 if __name__ == "__main__":
408 unittest.main() 408 unittest.main()
LEFTRIGHT

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