Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning in test_unittest #128729

Closed
serhiy-storchaka opened this issue Jan 11, 2025 · 0 comments
Closed

RuntimeWarning in test_unittest #128729

serhiy-storchaka opened this issue Jan 11, 2025 · 0 comments
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Jan 11, 2025

$ ./python -We -m test -vuall test_unittest -m test_deprecation_of_return_val_from_test_async_method
...
test_deprecation_of_return_val_from_test_async_method (test.test_unittest.test_case.Test_TestCase.test_deprecation_of_return_val_from_test_async_method) ... Warning -- Unraisable exception
Exception ignored in: <coroutine object Test_TestCase.test_deprecation_of_return_val_from_test_async_method.<locals>.Foo.test1 at 0x7f5c24cb3a10>
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 691, in _warn_unawaited_coroutine
    warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
RuntimeWarning: coroutine 'Test_TestCase.test_deprecation_of_return_val_from_test_async_method.<locals>.Foo.test1' was never awaited
ok
...

Linked PRs

@serhiy-storchaka serhiy-storchaka added the tests Tests in the Lib/test dir label Jan 11, 2025
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Jan 11, 2025
@serhiy-storchaka serhiy-storchaka changed the title ResourceWarning in test_unittest RuntimeWarning in test_unittest Jan 11, 2025
@serhiy-storchaka serhiy-storchaka added the 3.14 new features, bugs and security fixes label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant