From cae8e682cdd9f627480093cab8d26daff801bf51 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Wed, 3 Apr 2019 17:24:18 +0200 Subject: [PATCH] Quiesce assertAlmostEquals deprecation warning Last of the low-hanging fruit in Glance testlog verbosity, let's get rid of a deprecation warning around usage of assertAlmostEquals(). Change-Id: I9c01887d46d6504dd77bd04cab4c07f4bc0506fa --- glance/tests/unit/common/test_timeutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glance/tests/unit/common/test_timeutils.py b/glance/tests/unit/common/test_timeutils.py index 3658fd6e68..debe01062e 100644 --- a/glance/tests/unit/common/test_timeutils.py +++ b/glance/tests/unit/common/test_timeutils.py @@ -74,8 +74,8 @@ class TimeUtilsTest(test_utils.BaseTestCase): before = timeutils.utcnow() after = before + datetime.timedelta(days=7, seconds=59, microseconds=123456) - self.assertAlmostEquals(604859.123456, - timeutils.delta_seconds(before, after)) + self.assertAlmostEqual(604859.123456, + timeutils.delta_seconds(before, after)) def test_iso8601_from_timestamp(self): utcnow = timeutils.utcnow()