Skip to content
Permalink
Browse files

catch one case when fLOG is None

  • Loading branch information...
sdpython committed Jan 19, 2018
1 parent 18094af commit 39f90e0d583253486329fb88c64adf04ed232c6b
@@ -1,5 +1,5 @@
"""
@brief test log(time=8s)
@brief test log(time=5s)
@author Xavier Dupre
"""

@@ -558,7 +558,8 @@ def post_process_html_output(file, pdf, python, slides, present, exc=True, nblin
"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML")

# notebook replacements
fLOG("[post_process_html_output] ", notebook_replacements)
if fLOG:
fLOG("[post_process_html_output] ", notebook_replacements)
text = _notebook_replacements(text, notebook_replacements, fLOG)

text = update_notebook_link(text, "html", nblinks=nblinks, fLOG=fLOG)
@@ -673,7 +673,7 @@ def add_link_to_notebook(file, nb, pdf, html, python, slides, present, exc=True,
@param github add a link to the notebook on github
@param notebook location of the notebook (file might be a copy)
@param nblinks dictionary ``{ref: url}``
@parama notebook_replacements stirng replacement in notebooks
@param notebook_replacements stirng replacement in notebooks
@param fLOG logging function
@return list of generated files
@@ -548,7 +548,7 @@ def short_name(l):

# displays
memout.write("[main_run_test] ---- END UT\n")
memout.write("[main_run_test] ---- JENKINS END UNIT TESTS ----")
memout.write("[main_run_test] ---- JENKINS END UNIT TESTS ----\n")

fLOG("[main_run_test] restore stdout, stderr")

@@ -576,7 +576,11 @@ def short_name(l):
for fi, lw in allwarn:
if len(lw) > 0:
memout.write("-WARN: {0}\n".format(fi))
wdone = {}
for i, (w, s) in enumerate(lw):
if w.message in wdone:
continue
wdone[w.message] = w
try:
sw = " w{0}: {1}\n".format(i, w)
except UnicodeEncodeError:
@@ -213,7 +213,6 @@ def format_dim(s):
width = format_dim(width)
height = format_dim(height)
body = body.format(width, height, filename)
print("---", body)
self.body.append(body)


0 comments on commit 39f90e0

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