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

Issue with pytest 8.2.0 and tornado async task #385

Closed
kensonman opened this issue Jun 17, 2024 · 2 comments
Closed

Issue with pytest 8.2.0 and tornado async task #385

kensonman opened this issue Jun 17, 2024 · 2 comments

Comments

@kensonman
Copy link

The Issue with pytest 8.2.0 and tornado async tests was found.

The workaround:

  1. Downgrade the pytest to 8.1.2
pip install 'pytest<8.2.0'
  1. Upgrade the tornado to at least 6.4.1
pip install 'tornado>=6.4.1'
@kensonman
Copy link
Author

Current test output:

========== short test summary info ==========
ERROR tests/test_app.py::AsyncHTTPTestCase - AttributeError: 'AsyncHTTPTestCase' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppBase - AttributeError: 'TestAppBase' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppBasic - AttributeError: 'TestAppBasic' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::OtherTestBase - AttributeError: 'OtherTestBase' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppInDebugMode - AttributeError: 'TestAppInDebugMode' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithLargeBuffer - AttributeError: 'TestAppWithLargeBuffer' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithRejectPolicy - AttributeError: 'TestAppWithRejectPolicy' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithBadHostKey - AttributeError: 'TestAppWithBadHostKey' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithTrustedStream - AttributeError: 'TestAppWithTrustedStream' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppNotFoundHandler - AttributeError: 'TestAppNotFoundHandler' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithHeadRequest - AttributeError: 'TestAppWithHeadRequest' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithPutRequest - AttributeError: 'TestAppWithPutRequest' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithTooManyConnections - AttributeError: 'TestAppWithTooManyConnections' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithCrossOriginOperation - AttributeError: 'TestAppWithCrossOriginOperation' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithBadEncoding - AttributeError: 'TestAppWithBadEncoding' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_app.py::TestAppWithUnknownEncoding - AttributeError: 'TestAppWithUnknownEncoding' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_profiles.py::AsyncTestCase - AttributeError: 'AsyncTestCase' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_profiles.py::AsyncHTTPTestCase - AttributeError: 'AsyncHTTPTestCase' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_profiles.py::TestWebGUIWithProfiles - AttributeError: 'TestWebGUIWithProfiles' object has no attribute 'runTest'. Did you mean: 'subTest'?
ERROR tests/test_profiles.py::TestWebGUIWithoutProfiles - AttributeError: 'TestWebGUIWithoutProfiles' object has no attribute 'runTest'. Did you mean: 'subTest'?
!!!!!!!!!! Interrupted: 20 errors during collection !!!!!!!!!!
========== 20 errors in 0.52s ==========

@kensonman kensonman changed the title Cannot pass the unittest (pytest) Issue with pytest 8.2.0 and tornado async task Jun 17, 2024
@kensonman
Copy link
Author

issue-385-fixing.patch

Attached the patch for upgrading the tornado to 6.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant