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

NameError in test file causes internal error #113

Closed
jitseniesen opened this issue Feb 24, 2018 · 0 comments
Closed

NameError in test file causes internal error #113

jitseniesen opened this issue Feb 24, 2018 · 0 comments
Assignees
Milestone

Comments

@jitseniesen
Copy link
Member

If a test file causes a NameError, for instance because it starts with an undefined identifier, then the py.test test output contains

INTERNALERROR> File ".../spyder_unittest/backend/pytestworker.py", line 54, in pytest_collectreport
INTERNALERROR>     'longrepr': report.longrepr.longrepr
INTERNALERROR> AttributeError: 'ExceptionChainRepr' object has no attribute 'longrepr'

The plugin does not like this.

@jitseniesen jitseniesen added this to the v0.3.1 milestone Feb 24, 2018
jitseniesen added a commit to jitseniesen/spyder-unittest that referenced this issue May 30, 2018
This correctly handles errors that occur in pytest's collection phase.
Fixes spyder-ide#113
@jitseniesen jitseniesen self-assigned this May 31, 2018
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

No branches or pull requests

1 participant