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

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

Issue 25958: Implicit ABCs have no means of "anti-registration"
Left Patch Set: Created 3 years, 6 months ago
Right Patch Set: Created 3 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_binop.py ('k') | Lib/test/test_bytes.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 properties of bool promised by PEP 285 1 # Test properties of bool promised by PEP 285
2 2
3 import unittest 3 import unittest
4 from test import support 4 from test import support
5 5
6 import os 6 import os
7 7
8 class BoolTest(unittest.TestCase): 8 class BoolTest(unittest.TestCase):
9 9
10 def test_subclass(self): 10 def test_subclass(self):
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 self.assertEqual(False.real, 0) 352 self.assertEqual(False.real, 0)
353 self.assertEqual(False.imag, 0) 353 self.assertEqual(False.imag, 0)
354 self.assertIs(type(False.real), int) 354 self.assertIs(type(False.real), int)
355 self.assertIs(type(False.imag), int) 355 self.assertIs(type(False.imag), int)
356 356
357 def test_main(): 357 def test_main():
358 support.run_unittest(BoolTest) 358 support.run_unittest(BoolTest)
359 359
360 if __name__ == "__main__": 360 if __name__ == "__main__":
361 test_main() 361 test_main()
LEFTRIGHT

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