Skip to content
Snippets Groups Projects
Commit 678cadb6 authored by Martin Bauer's avatar Martin Bauer
Browse files

dbg output

parent a416915f
No related branches found
No related tags found
No related merge requests found
...@@ -24,11 +24,15 @@ class SimpleTestRunner(distutils.cmd.Command): ...@@ -24,11 +24,15 @@ class SimpleTestRunner(distutils.cmd.Command):
@staticmethod @staticmethod
def _run_tests_in_module(test): def _run_tests_in_module(test):
"""Short test runner function - to work also if py.test is not installed.""" """Short test runner function - to work also if py.test is not installed."""
print("at start")
test = 'lbmpy_tests.' + test test = 'lbmpy_tests.' + test
mod, function_name = test.rsplit('.', 1) mod, function_name = test.rsplit('.', 1)
if isinstance(mod, str): if isinstance(mod, str):
print("before import ", mod)
mod = import_module(mod) mod = import_module(mod)
print("after import ", mod)
print("before getattr")
func = getattr(mod, function_name) func = getattr(mod, function_name)
print(" -> %s in %s" % (function_name, mod.__name__)) print(" -> %s in %s" % (function_name, mod.__name__))
with redirect_stdout(io.StringIO()): with redirect_stdout(io.StringIO()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment