##// END OF EJS Templates
Unset PYTHONWARNINGS envvar before running subprocess tests....
Thomas Kluyver -
r15466:fdd7e67a
parent child
Show More
@@ -213,7 +213,9 def ipexec(fname, options=None):
213 # Absolute path for filename
213 # Absolute path for filename
214 full_fname = os.path.join(test_dir, fname)
214 full_fname = os.path.join(test_dir, fname)
215 full_cmd = ipython_cmd + cmdargs + [full_fname]
215 full_cmd = ipython_cmd + cmdargs + [full_fname]
216 p = Popen(full_cmd, stdout=PIPE, stderr=PIPE)
216 env = os.environ.copy()
217 env.pop('PYTHONWARNINGS') # Avoid extraneous warnings appearing on stderr
218 p = Popen(full_cmd, stdout=PIPE, stderr=PIPE, env=env)
217 out, err = p.communicate()
219 out, err = p.communicate()
218 out, err = py3compat.bytes_to_str(out), py3compat.bytes_to_str(err)
220 out, err = py3compat.bytes_to_str(out), py3compat.bytes_to_str(err)
219 # `import readline` causes 'ESC[?1034h' to be output sometimes,
221 # `import readline` causes 'ESC[?1034h' to be output sometimes,
General Comments 0
You need to be logged in to leave comments. Login now