From d744cc224c6fb40eac199b680c97538b39413d3c 2015-03-29 22:33:48 From: Min RK Date: 2015-03-29 22:33:48 Subject: [PATCH] suppress warnings in ipexec tests shim imports cause lots of warnings should we always suppress warnings in these tests? --- 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