Skip to content
Prev Previous commit
Next Next commit
fix test (smaller eps value to pass assertClose tests)
  • Loading branch information
skirpichev committed Aug 18, 2026
commit c4cd2e7f892f9acd49f4e86c038384409deb454d
2 changes: 1 addition & 1 deletion Lib/test/test_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def test_pow_with_small_integer_exponents(self):
self.assertComplexesAreIdentical(c**-2, complex(-0.0, -y/x))

# Test that zeroes has the same sign as small non-zero values.
eps = 1e-8
eps = 1e-11
pairs = [(complex(x, y), complex(x, copysign(0.0, y)))
for x in [+1, -1] for y in [+eps, -eps]]
pairs += [(complex(y, x), complex(copysign(0.0, y), x))
Expand Down
Loading