From 1f570211ff827092085d2ff988398873d68dce87 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Fri, 7 Oct 2022 21:50:46 +0100 Subject: [PATCH] gh-92886: make test_coroutines pass with -O (assertions off) --- Lib/test/test_coroutines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 9a2279d353ffa4..f91c9cc47741b5 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -1287,7 +1287,7 @@ async def __aexit__(self, *exc): async def func(): async with CM(): - assert (1, ) == 1 + self.assertEqual((1, ), 1) with self.assertRaises(AssertionError): run_async(func())