Skip to content

resultlog handling of internal error #99

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

Closed
pytestbot opened this issue Dec 9, 2011 · 4 comments
Closed

resultlog handling of internal error #99

pytestbot opened this issue Dec 9, 2011 · 4 comments
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Anonymous


incase an internal error occurs and resultlog is on,

an attribute error is raised from line 94 in resultlog.py

line 94, in pytest_internalerror
path = excrepr.reprcrash.path
AttributeError: 'str' object has no attribute 'reprcrash'

seems like excrepr is the str representation of the exception.


@pytestbot
Copy link
Contributor Author

Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):


a full trace please, also osme information on ow the crash itself happened

@pytestbot
Copy link
Contributor Author

Original comment by Anonymous:


i was messing around with the hooks when it happened.

this will do the trick:

def pytest_runtest_logreport(report):
raise Exception()

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


Can you try out "pip install -i http://pypi.testrun.org -U pytest" and see if it works better for you?

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


fix issue99 - internalerror with --resultlog now produce better output.
the fix depends on another change in the py lib which unifies
the output for native and non-native traceback formatting styles

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
fkohlgrueber pushed a commit to fkohlgrueber/pytest that referenced this issue Oct 27, 2018
mgorny pushed a commit to mgorny/pytest that referenced this issue May 27, 2023
Fixed SVG file generation on windows (pytest-dev#93)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant