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

Do not suppress tracebacks when running 'test' notebooks via nbval #384

Open
willfurnass opened this issue Feb 10, 2020 · 3 comments
Open

Comments

@willfurnass
Copy link
Collaborator

At present tracebacks are suppressed via the logic in init.py. This is annoying when pytest fails.

A possible solution: if there is an active IPython session then only suppress tracebacks if an env var is defined and set to 1. This env var could then be set to 1 in tox.ini

@jarmarshall
Copy link
Contributor

I think this is setVerbose()? Add this to test notebooks if it's not there already?

@willfurnass
Copy link
Collaborator Author

It's the user manual Notebook that this would be most useful for as it's the first Notebook to be run by tox but I presume you don't want setVerbose(True) added to that Notebook.

@jarmarshall
Copy link
Contributor

OK - maybe run it last? It's good to test the user manual of course, but most of the functionality should have been tested if the other notebooks complete...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants