aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_coroutines.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2025-05-22 13:17:22 +0300
committerGitHub <noreply@github.com>2025-05-22 13:17:22 +0300
commit2602d8ae981c4bae1cada2c174b367d97f712efb (patch)
treeb4b9f49c391469ee1fa894a85303916e47201aa1 /Lib/test/test_coroutines.py
parentbb244fd33d3eb67923ec3253568867bfaed9895f (diff)
downloadcpython-2602d8ae981c4bae1cada2c174b367d97f712efb.tar.gz
cpython-2602d8ae981c4bae1cada2c174b367d97f712efb.zip
gh-71339: Use new assertion methods in tests (GH-129046)
Diffstat (limited to 'Lib/test/test_coroutines.py')
-rw-r--r--Lib/test/test_coroutines.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 761cb230277..4755046fe19 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -527,7 +527,7 @@ class CoroutineTest(unittest.TestCase):
def test_gen_1(self):
def gen(): yield
- self.assertFalse(hasattr(gen, '__await__'))
+ self.assertNotHasAttr(gen, '__await__')
def test_func_1(self):
async def foo():