We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6230932 commit c5b8583Copy full SHA for c5b8583
1 file changed
Lib/test/test_cmath.py
@@ -584,9 +584,10 @@ def test_complex_near_zero(self):
584
self.assertIsNotClose(0.001-0.001j, 0.001+0.001j, abs_tol=1e-03)
585
586
def test_complex_special(self):
587
- self.assertIsClose(complex(INF,INF),complex(INF,INF))
588
- self.assertIsClose(complex(-INF,-INF),complex(-INF,-INF))
589
- self.assertIsNotClose(complex(NAN,NAN),complex(NAN,NAN))
+ self.assertIsClose(complex(INF, INF), complex(INF, INF))
+ self.assertIsClose(complex(-INF, -INF), complex(-INF, -INF))
+ self.assertIsNotClose(complex(NAN, NAN), complex(NAN, NAN))
590
+ self.assertIsNotClose(complex(INF, INF), complex(-INF, -INF))
591
self.assertIsNotClose(INF, INF*1j)
592
self.assertIsNotClose(INF*1j, INF)
593
self.assertIsNotClose(INF, -INF)
0 commit comments