Open ElephantsDad opened 4 years ago
I see you have a brand new version of pytest there (6.0.1). There might be some issues with that. Thanks for reporting!
I see you have a brand new version of pytest there (6.0.1). There might be some issues with that. Thanks for reporting!
Oh, I didn't think about that. Can you please tell me, what version of pytest is compatible with current nbval version?
I suspect from the traceback that the pytest version is a red herring. I think nbval is clashing with another pytest plugin you have installed - dash/testing/plugin.py
.
I'm trying to find the way to test all of my jupyterlab extensions in one notebook and I found that nbval could be usefull. But I can't even use it properly, because I'm having this error almost in every notebook (it occures even in documentation index.ipynb file from docs/source).
UPD: I forgot to tell that it happens in jupyterlab in docker container, seems like error doesn't show up outside it For example: Code in cell (I know this test should be failed because of random):
Executing with:
py.test --nbval Untitled.ipynb
And got internal error:
Full error
``` platform linux -- Python 3.6.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 plugins: nbval-0.9.6, dash-1.1.1 collected 2 items Untitled.ipynb INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/local/lib/python3.6/dist-packages/_pytest/main.py", line 240, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/usr/local/lib/python3.6/dist-packages/_pytest/main.py", line 296, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in __call__ INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) INTERNALERROR> File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) INTERNALERROR> File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in