Skip to content

Commit

Permalink
not treating numpy warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mseth10 committed Oct 11, 2019
1 parent 63a34cb commit 5059177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/notebook_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run_notebook(notebook, notebook_dir, kernel=None, no_cache=False, temp_dir='
nbformat.write(notebook, output_file)
output_nb = io.open(output_file, mode='r', encoding='utf-8')
for line in output_nb:
if "Warning:" in line:
if "Warning:" in line and "numpy operator signatures" not in line:
errors.append("Warning:\n" + line)
if len(errors) > 0:
logging.error('\n'.join(errors))
Expand Down

0 comments on commit 5059177

Please sign in to comment.