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

## Delta Between Two Patch Sets: Lib/test/test_complex.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: 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
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_compile.py ('k') | Lib/test/test_concurrent_futures.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Hide Comments ('s')
LEFTRIGHT
1 import unittest 1 import unittest
2 from test import support 2 from test import support
3 3
4 from random import random 4 from random import random
5 from math import atan2, isnan, copysign 5 from math import atan2, isnan, copysign
6 import operator 6 import operator
7 7
8 INF = float("inf") 8 INF = float("inf")
9 NAN = float("nan") 9 NAN = float("nan")
10 # These tests ensure that complex math does the right thing 10 # These tests ensure that complex math does the right thing
(...skipping 618 matching lines...)
629 self.assertEqual(format(complex(INF, INF), 'F'), 'INF+INFj') 629 self.assertEqual(format(complex(INF, INF), 'F'), 'INF+INFj')
630 self.assertEqual(format(complex(1, INF), 'F'), '1.000000+INFj') 630 self.assertEqual(format(complex(1, INF), 'F'), '1.000000+INFj')
631 self.assertEqual(format(complex(INF, 1), 'F'), 'INF+1.000000j') 631 self.assertEqual(format(complex(INF, 1), 'F'), 'INF+1.000000j')
632 self.assertEqual(format(complex(INF, -1), 'F'), 'INF-1.000000j') 632 self.assertEqual(format(complex(INF, -1), 'F'), 'INF-1.000000j')
633 633
634 def test_main(): 634 def test_main():
635 support.run_unittest(ComplexTest) 635 support.run_unittest(ComplexTest)
636 636
637 if __name__ == "__main__": 637 if __name__ == "__main__":
638 test_main() 638 test_main()
LEFTRIGHT

This is Rietveld 894c83f36cb7+