-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
self.doCleanups()
cannot be called from a test method of a unittest.IsolatedAsyncioTestCase
subclass
#101018
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
Comments
I don't understand that test class very well. Do you have an analysis of the root cause (beyond pointing to the PR that introduced the regression)? Or a proposed fix? |
self.doCleanups()
cannot be called from a synchronous test method of a unittest.IsolatedAsyncioTestCase
subclassself.doCleanups()
cannot be called from a test method of a unittest.IsolatedAsyncioTestCase
subclass
The root cause is that I don't have a great suggestion for a fix. I'm not sure if we can actually support calling Footnotes
|
I don't think that |
The documentation for Our test suite does not have complete coverage, but |
Okay thanks but I am not myself a user of unittest and the comment https://github.com/python/cpython/blame/c5660ae96f2ab5732c68c301ce9a63009f432d93/Lib/unittest/async_case.py#L14 is mostly out of date so I am not sure of the semantics here. |
I concur with @kumaraditya303 that I worked on a patch which makes calling |
Example:
The above passes in 3.9 and 3.10, but fails in 3.11 with
git bisect
found the culprit to be gh-91150/GH-31837.The text was updated successfully, but these errors were encountered: