Skip to content

Commit

Permalink
suppress warnings temporarily in CI part 6, ipython dosent take -W
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Oct 17, 2024
1 parent 2b3452a commit 1763176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions autotest_exs/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def test_notebooks(notebook):
ipython = bin_path / "ipython"
assert ipython.exists(), f"ipython not found at: {ipython}"

if "06" == str(notebook.name)[0:2]:
cmd = ["ipython", "-Wignore", str(nb_py)]
else:
cmd = ["ipython", str(nb_py)]
cmd = ["ipython", str(nb_py)]
proc = subprocess.run(cmd)
assert proc.returncode == 0, f"Running the notebook failed: {notebook}"

Expand Down
6 changes: 5 additions & 1 deletion examples/06_flow_graph_starfit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
"plot_height = 600\n",
"plot_width = 1000\n",
"\n",
"jupyter_black.load()"
"jupyter_black.load()\n",
"\n",
"# to remove:\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\")"
]
},
{
Expand Down

0 comments on commit 1763176

Please sign in to comment.