diff --git a/IPython/testing/tools.py b/IPython/testing/tools.py index cfb4c9f..b92489c 100644 --- a/IPython/testing/tools.py +++ b/IPython/testing/tools.py @@ -217,7 +217,10 @@ def ipexec(fname, options=None, commands=()): full_fname = os.path.join(test_dir, fname) full_cmd = ipython_cmd + cmdargs + [full_fname] env = os.environ.copy() - env.pop('PYTHONWARNINGS', None) # Avoid extraneous warnings appearing on stderr + # FIXME: ignore all warnings in ipexec while we have shims + # should we keep suppressing warnings here, even after removing shims? + env['PYTHONWARNINGS'] = 'ignore' + # env.pop('PYTHONWARNINGS', None) # Avoid extraneous warnings appearing on stderr for k, v in env.items(): # Debug a bizarre failure we've seen on Windows: # TypeError: environment can only contain strings