Skip to content
Permalink
Browse files

fix unit test broken in previous commit

  • Loading branch information...
sdpython committed Dec 31, 2017
1 parent 5c87e69 commit 7312f57149bbdcd166e06ec2e1643ff06d8264b8
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/pyquickhelper/pycode/utils_tests.py
@@ -256,13 +256,13 @@ def tested_module(folder, project_var_name, setup_params):
cov.exclude(line)
else:
cov.exclude("raise NotImplementedError")
stdout_this("[main_wrapper_tests] ENABLE COVERAGE")
stdout_this.write("[main_wrapper_tests] ENABLE COVERAGE")
cov.start()

res = run_main()

cov.stop()
stdout_this(
stdout_this.write(
"[main_wrapper_tests] STOP COVERAGE + REPORT into '{0}'".format(report_folder))

cov.html_report(directory=report_folder)
@@ -331,7 +331,7 @@ def tested_module(folder, project_var_name, setup_params):

if dump_coverage is not None:
src = os.path.dirname(outfile)
stdout_this("[main_wrapper_tests] dump coverage from '{1}' to '{0}'".format(
stdout_this.write("[main_wrapper_tests] dump coverage from '{1}' to '{0}'".format(
dump_coverage, outfile))
synchronize_folder(src, dump_coverage, fLOG=fLOG)

@@ -343,7 +343,7 @@ def tested_module(folder, project_var_name, setup_params):
covtoken[0], covtoken[1])
if stdout is not None:
stdout.write(mes)
stdout_this(mes)
stdout_this.write(mes)
fLOG(mes)
publish_coverage_on_codecov(
token=covtoken[0], path=outfile, fLOG=fLOG)

0 comments on commit 7312f57

Please sign in to comment.
You can’t perform that action at this time.