Skip to content

Conversation

@BeyondEvil
Copy link
Contributor

@BeyondEvil
Copy link
Contributor Author

Sorry to bother you @nicoddemus, but I think I need your help.

When running tests using xdist, some tests fail when using 2.7 and pypy.

But running without xdist they pass.

Any idea why that is, and if it's fixable?

Thanks! 🙏

@nicoddemus
Copy link
Member

Sorry to bother you @nicoddemus, but I think I need your help.

No problem at all!

I did some investigation and I suspect that it is related to a long-standing issue on how workers are initialized in xdist, see pytest-dev/pytest-xdist#448. I'm afraid there's no simple solution for now, because pytest-dev/pytest-xdist#448 will require pytest>=5.1, which no longer supports Python 2.7 anyway. 😕

My suggestion is to just execute pytest-html without xdist for now on Python 2.

@BeyondEvil
Copy link
Contributor Author

Thank you @nicoddemus ! I appreciate it!

Glad I didn't go down the rabbit hole of trying to troubleshoot this then. I'll do what you advise. 😊

Thanks again!

@BeyondEvil BeyondEvil merged commit 8e96c6e into pytest-dev:master Aug 4, 2019
@BeyondEvil BeyondEvil deleted the migrate-to-black branch August 4, 2019 12:09
@ssbarnea ssbarnea added the enhancement This issue/PR relates to a feature request. label Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This issue/PR relates to a feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants