You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix async setUp/tearDown validation on Python 3.12
The typing changes in commit 282db18 inadvertently broke the async
setUp/tearDown validation by:
1. Renaming the return value variable from `ret` to `setup_result`/`teardown_result`
2. Adding an unnecessary `is not None` check before the duck-typing check
These changes, while logically equivalent, caused test failures on Python 3.12.
Reverting to the original variable names and removing the None check
fixes the issue while maintaining type safety with appropriate type: ignore
comments.
Fixes the test failure in:
tests.twistedsupport.test_runtest.TestAsyncSetUpTearDownValidation.test_async_setup_with_deferred_upcall
0 commit comments