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

work around ResultLog support for pytest>=6.1 #129

Merged
merged 4 commits into from
Sep 28, 2020
Merged

work around ResultLog support for pytest>=6.1 #129

merged 4 commits into from
Sep 28, 2020

Conversation

ntessore
Copy link
Contributor

This is a workaround that closes #128. It does not address potential integration with the reportlog plugin.

Copy link
Member

@gnikonorov gnikonorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As an immediate fix to stop the fatal error, I think this is OK. I will defer to @sallner and/or @icemac for the merge.

@ntessore if this gets merged can you open a separate issue to track integration with reportlog so it doesn't get lost?

@gnikonorov gnikonorov added the maintenance Keep up with the current pytest releases. label Sep 27, 2020
@gnikonorov
Copy link
Member

Could you also add a changelog entry to this PR, @ntessore? It can be added in the CHANGES.rst file

@ntessore
Copy link
Contributor Author

@gnikonorov I'm really not qualified to open an issue on pytest plugin interoperability, I wouldn't even know if that should be an issue here or in pytest-dev/pytest-reportlog.

Copy link
Member

@gnikonorov gnikonorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nitpickish comment on the changelog text

CHANGES.rst Outdated Show resolved Hide resolved
@gnikonorov
Copy link
Member

@gnikonorov I'm really not qualified to open an issue on pytest plugin interoperability, I wouldn't even know if that should be an issue here or in pytest-dev/pytest-reportlog.

@ntessore I'll open one then. Thank you for fixing the crash

CHANGES.rst Outdated Show resolved Hide resolved
The-Compiler added a commit to qutebrowser/qutebrowser that referenced this pull request Sep 28, 2020
@sallner
Copy link
Member

sallner commented Sep 28, 2020

I am unhappy with the fact, that we have now 3 ways of handling the resultlog in this plugin, but it seems that a bugfix release might be appropriate to make various CIs green again.

Copy link
Member

@sallner sallner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge the changes and cut a release as 9.1.1. We can clean up the rest afterwards.

@icemac
Copy link
Contributor

icemac commented Sep 29, 2020

I will merge the changes and cut a release as 9.1.1. We can clean up the rest afterwards.

Maybe it should become a 9.2 or even 10.0 as the --result-log command line option is no linger supported when this plug-in is used together with pytest >= 6.1.

@sallner
Copy link
Member

sallner commented Sep 29, 2020

@ntessore Thanks for the work, version 9.1.1 is out with the workaround. https://pypi.org/project/pytest-rerunfailures/9.1.1/ Let's see, what we will do with the clean up, and if we need to support resultlog in the future.

@hugovk
Copy link
Member

hugovk commented Sep 29, 2020

Thank you all for the quick fix and release!

nabobalis added a commit to sunpy/sunpy that referenced this pull request Oct 5, 2020
pabs3 added a commit to pabs3/gensim that referenced this pull request Nov 7, 2021
pytest-rerunfailures is now compatible with pytest 6.1.0 and later.

Reverts: commit 8687e7f.
Reported-in: pytest-dev/pytest-rerunfailures#128
Fixed-by: pytest-dev/pytest-rerunfailures#129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Keep up with the current pytest releases.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_pytest.resultlog was removed in pytest 6.1.0
6 participants