Commit 678cadb6 authored by Martin Bauer's avatar Martin Bauer
Browse files

dbg output

parent a416915f
Pipeline #21222 canceled with stages
in 27 minutes and 56 seconds
......@@ -24,11 +24,15 @@ class SimpleTestRunner(distutils.cmd.Command):
@staticmethod
def _run_tests_in_module(test):
"""Short test runner function - to work also if py.test is not installed."""
print("at start")
test = 'lbmpy_tests.' + test
mod, function_name = test.rsplit('.', 1)
if isinstance(mod, str):
print("before import ", mod)
mod = import_module(mod)
print("after import ", mod)
print("before getattr")
func = getattr(mod, function_name)
print(" -> %s in %s" % (function_name, mod.__name__))
with redirect_stdout(io.StringIO()):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment