---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
~/Code/SideProjects/ipytest/tests/TestIntegration.ipynb in <module>
----> 1 get_ipython().run_cell_magic('run_pytest[clean]', '-qq', '\ndef test_foo():\n assert True is False\n')
~/.local/share/virtualenvs/ipytest-w1VRNA16/lib/python3.7/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2321 magic_arg_s = self.var_expand(line, stack_depth)
2322 with self.builtin_trap:
-> 2323 result = fn(magic_arg_s, cell)
2324 return result
2325
<decorator-gen-125> in run_pytest_clean(self, line, cell)
~/.local/share/virtualenvs/ipytest-w1VRNA16/lib/python3.7/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~/Code/SideProjects/ipytest/ipytest/_pytest_support.py in run_pytest_clean(self, line, cell)
153
154 clean_tests(items=__main__.__dict__)
--> 155 return self.run_pytest(line, cell)
156
157 @cell_magic
<decorator-gen-126> in run_pytest(self, line, cell)
~/.local/share/virtualenvs/ipytest-w1VRNA16/lib/python3.7/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~/Code/SideProjects/ipytest/ipytest/_pytest_support.py in run_pytest(self, line, cell)
167 import ipytest
168
--> 169 ipytest.exit_code = run(*shlex.split(line), return_exit_code=True)
170
171 @cell_magic
~/Code/SideProjects/ipytest/ipytest/_pytest_support.py in run(module, filename, plugins, return_exit_code, *args)
75 if config.raise_on_error and exit_code != 0:
76 raise RuntimeError(
---> 77 "Error in pytest invocation. Exit code: {}".format(exit_code)
78 )
79
RuntimeError: Error in pytest invocation. Exit code: 1