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

Adding Failed exception to manage maxfail behavior #2845

Merged
merged 2 commits into from Oct 19, 2017

Conversation

jespino
Copy link
Contributor

@jespino jespino commented Oct 17, 2017

As I explained in the issue #2832, I'm not sure that the behavior is incorrect by itself, but have sense both options, interrupt return, and failed return. Anyway, I prefer to have failed return and leave "interrupt" to explicit user interruptions, like Ctrl-C.

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

good initial work 👍

due to the nature of the bugfix here i believe its better to target the features branch here

please also add a test that demonstrates the behaviour in the testsuite as well as a changelog entry

@jespino jespino changed the base branch from master to features October 17, 2017 17:47
@jespino jespino force-pushed the fix/2832 branch 4 times, most recently from f690161 to 00d3abe Compare October 17, 2017 19:30
@jespino
Copy link
Contributor Author

jespino commented Oct 17, 2017

Added a changelog entry, changed the branch to merge to feature, and the current tests are changed to validate the new behavior. The existing test already test the behavior.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 92.658% when pulling 00d3abe on jespino:fix/2832 into 71c76d9 on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 92.658% when pulling f690161 on jespino:fix/2832 into 71c76d9 on pytest-dev:features.

@nicoddemus
Copy link
Member

nicoddemus commented Oct 18, 2017

The existing test already test the behavior.

I agree that's enough, unless @RonnyPfannschmidt has something else to test in mind.

The two failing tests are unrelated (#2843).

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 92.658% when pulling e81b275 on jespino:fix/2832 into 71c76d9 on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt merged commit 3f9f4be into pytest-dev:features Oct 19, 2017
@jespino jespino deleted the fix/2832 branch October 19, 2017 09:39
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.

None yet

4 participants