diff --git a/tests/contrib/psycopg/test_psycopg_async.py b/tests/contrib/psycopg/test_psycopg_async.py index 98f95210264..c1936ce909b 100644 --- a/tests/contrib/psycopg/test_psycopg_async.py +++ b/tests/contrib/psycopg/test_psycopg_async.py @@ -84,7 +84,7 @@ async def assert_conn_is_traced_async(self, db, service): rows = await res.fetchall() end = time.time() - self.assertEquals(rows, [("foobarblah",)]) + self.assertEqual(rows, [("foobarblah",)]) self.assert_structure( dict(name="postgres.query", resource=q, service=service, error=0, span_type="sql"), @@ -139,7 +139,7 @@ async def test_opentracing_propagation(self): await cursor.execute(query) rows = await cursor.fetchall() - self.assertEquals(rows, [("tracing",)]) + self.assertEqual(rows, [("tracing",)]) self.assert_structure( dict(name="db.access", service="psycopg-svc"), @@ -157,7 +157,7 @@ async def test_opentracing_propagation(self): await cursor.execute(query) rows = await cursor.fetchall() - self.assertEquals(rows, [("tracing",)]) + self.assertEqual(rows, [("tracing",)]) self.assert_structure( dict(name="db.access", service="psycopg-svc"),