Python 3.12: use assertAlmostEqual
The old failUnlessAlmostEqual is removed from Python 3.12. Let's use assertAlmostEqual instead. Change-Id: I25c4d43c580d9b101be5ed3e0e23fead704b09f0
This commit is contained in:
@@ -480,7 +480,7 @@ class LimiterTest(BaseLimitTestSuite):
|
|||||||
|
|
||||||
expected = 60.0 / 7.0
|
expected = 60.0 / 7.0
|
||||||
results = self._check_sum(1, "POST", "/anything")
|
results = self._check_sum(1, "POST", "/anything")
|
||||||
self.failUnlessAlmostEqual(expected, results, 8)
|
self.assertAlmostEqual(expected, results, 8)
|
||||||
|
|
||||||
def test_delay_GET(self):
|
def test_delay_GET(self):
|
||||||
"""Ensure the 11th GET will result in NO delay."""
|
"""Ensure the 11th GET will result in NO delay."""
|
||||||
|
|||||||
Reference in New Issue
Block a user