-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add --no-trace option, overrides pytrace=True for pytest.fail #6652
Conversation
f6bdd71
to
ff0103a
Compare
ff0103a
to
5240db6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea/issue is nice, but I think it needs a better / more central method.
Note that _repr_failure_py
is bad already (with regard to typing) to return a str
here in some cases - this should not get extended. (btw: it also does not handle --full-trace
here (blueyed@140d256)).
So I think the option in general makes sense, but should be handled diffrently maybe.
btw: have you tried --tb=line
?
Another idea that comes to mind is enforcing |
That's where I started, but the session isn't available there in a clear manner. |
Not sure I agree... I don't think the method is being extended; it used to return I agree that |
I've looked into making it not return Ref: #3399 @GPery
|
I have not. |
So I think |
No, I was mistaken on the last comment, I would appreciate the merge, it's a minor change that'll make things easier for me (keeping up to date with upstream). |
My opinion is that this need is not common enough to deserve a configuration option, so I propose we close this PR. The issue can remain open in case someone comes up with another suggestion for satisfying this need. |
Now that #7100 is merged, we have a better avenue for resolving this issue, as mentioned here: #7100 (review), so I'm closing this PR. |
Hey, I just opened this issue to open a PR for the fork I'll be using for my automated exercise testing.
Hoping this change can be useful to others as well 😄