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

pytester: quick fix error introduced in #5990 #6353

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

mulatinho
Copy link
Contributor

@mulatinho mulatinho commented Dec 18, 2019

Fixes: #6352

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Thanks a lot @mulatinho!

Please also include a test in testing/test_pytester.py that reproduces the original problem, so we can avoid regressions like this one in the future. 👍

@@ -0,0 +1 @@
Fixing error introducted by #5990
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Fixing error introducted by #5990
Fix problem with ``testdir`` not recognizing errors correctly in runs with a single test.

- added a test to check this condition

Signed-off-by: Alexandre Mulatinho <alex@mulatinho.net>
@mulatinho
Copy link
Contributor Author

@nicoddemus thanks for the feedback, I added one test to avoid that as you requested.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for the contribution @mulatinho!

@nicoddemus nicoddemus merged commit 8077168 into pytest-dev:master Dec 27, 2019
blueyed added a commit to blueyed/pytest that referenced this pull request Dec 30, 2019
blueyed added a commit that referenced this pull request Jan 3, 2020
Fix `RunResult.parseoutcomes` (follow-up to #6353)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#5990 breaks pytester (by changing "error" to "errors")
2 participants