-
Notifications
You must be signed in to change notification settings - Fork 232
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
[WIP] Issue #130 #164
[WIP] Issue #130 #164
Conversation
the approach looks interesting, unfortunately it broke the build at least on old pytest @nicoddemus this one is in particular an issue since we started to use tox-travis - by now im relatively certain that i want to get rid of tox-travis, it breaks results in some cases |
I am taking a look at the failures. I admit I didn't test it out on older versions of python & pytest so I'll give it another go. |
@timyhou i stongly suggest using tox locally - we may be fine with dropping pytest 2.x support over this @nicoddemus oppinions? |
I agree, we might require pytest >= 3 then |
Should I add a commit with an updated tox.ini to not bother testing pytest 2.x to let the Travis CI and appveyor checks try again? |
Yes please. 😁 |
Sorry the commit history is going to get kind of messy as I realized I forgot to update the appveyor.yml and setup.py. If this becomes a thing, I promise to squash it properly. |
Added: Resolved these issues. A lot of the failures had to do with bad tox.ini configurations and changes in tests due to pytest >= 3 |
…ion info using ReprExceptionInfo. This addresses issue #130.
Update the install requires versions for pytest
I made a branch with a a cleaner git history on my fork. Would it be better to close this PR and start a new one against the better branch? |
@timyhou you can push-force to this branch, the PR will update automatically. |
Or feel free to create to create a new PR, no problem with that. 👍 |
Updated. |
Awesome, thanks! I checked locally and it works! 👍 |
Hmm I might have pushed that merge button too soon, I could have sworn @RonnyPfannschmidt was ok with the change already. @RonnyPfannschmidt what do you think? |
We should move this to pytest core eventually |
Hi, are you sure about this? :) if 'reprcrash' and 'reprtraceback' in reportdict['longrepr']: Maybe if I add some parenthesis how it is evaluated by Python: if ('reprcrash') and ('reprtraceback' in reportdict['longrepr']): |
@messa oh good catch, this definitely should be: if 'reprcrash' in reportdict['longrepr'] and 'reprtraceback' in reportdict['longrepr']: Would you like to open a PR with this fix? |
@nicoddemus Done: #213 |
Updated serialize_report and unserialize_report to allow passing of additional exception info using ReprExceptionInfo. We could also use
ExceptionChainRepr
instead actually. I mostly just took a suggestion from mszpala and ran with it.This addresses issue #130.
Thanks for submitting a PR, your contribution is really appreciated!
Here's a quick checklist that should be present in PRs:
Make sure to include reasonable tests for your change if necessary
Add a new news fragment into the changelog folder, following these guidelines:
Name it
$issue_id.$type
for example588.bug
If you don't have an issue_id change it to the PR id after creating it
Ensure type is one of
removal
,feature
,bugfix
,vendor
,doc
ortrivial
Make sure to use full sentences with correct case and punctuation, for example: