mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Remove unused imports in test modules.
This commit is contained in:
parent
dc3694bee0
commit
a4f46e1292
74 changed files with 40 additions and 135 deletions
|
@ -523,7 +523,6 @@ class IEEEFormatTestCase(unittest.TestCase):
|
|||
|
||||
if float.__getformat__("double").startswith("IEEE"):
|
||||
def test_negative_zero(self):
|
||||
import math
|
||||
def pos_pos():
|
||||
return 0.0, math.atan2(0.0, -1)
|
||||
def pos_neg():
|
||||
|
@ -537,7 +536,6 @@ class IEEEFormatTestCase(unittest.TestCase):
|
|||
|
||||
if float.__getformat__("double").startswith("IEEE"):
|
||||
def test_underflow_sign(self):
|
||||
import math
|
||||
# check that -1e-1000 gives -0.0, not 0.0
|
||||
self.assertEquals(math.atan2(-1e-1000, -1), math.atan2(-0.0, -1))
|
||||
self.assertEquals(math.atan2(float('-1e-1000'), -1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue