-
Notifications
You must be signed in to change notification settings - Fork 742
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
Parallelization causes test cases to stop respecting fixture's apartment state #2388
Comments
@CharliePoole, you're the most knowledgeable here. Are you in a position to take this on? |
It's pretty obvious where it is happening. Essentially, apartment state is similar to parallelism in that it is determined by both the test itself and the containing tests from which it "inherits"* the behavior. I'm tied up for the moment but I put my name on it to get to in a week or so. ======== *I put "inheritance" in quotes because it has nothing to do with either test object or attribute inheritance. One of those overloaded terms! 😸 |
I'm going away on a family trip for a couple of weeks so I'm taking my name off this to free it up for somebody else to work on. |
I'll add this to the PR I'm working on. |
I tested with 3.9.0-dev-04639 and this has not been fixed with our recent parallel fixes. |
Right, that's why I threw it back in the pond. It's not exactly a parallelization error, or not in the same way as the other errors are due to parallelization. It's simply that the ParallelWorkItemDispatcher, when dispatching the suite that wraps the individual cases looses the information that everything should be run in parallel. I think there's another issue that relates to this, which someone is working on. Can't find it at the moment though. |
Affected versions: 3.7.0–3.8.0
Fails:
Also fails if
[Parallelizable(ParallelScope.Children)]
is specified on the fixture or the method.Does not fail if nothing is parallelizable.
Does not fail if the apartment is specified on the method:
Does not fail for non-parameterized test methods.
The text was updated successfully, but these errors were encountered: