Skip to content

Commit 835847d

Browse files
ignore warnings in python2.6
1 parent 9707810 commit 835847d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bpython/test/test_args.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def test_exec_dunder_file(self):
3030
sys.stderr.flush()"""))
3131
f.flush()
3232
p = subprocess.Popen(
33-
[sys.executable, "-m", "bpython.curtsies", f.name],
33+
[sys.executable] +
34+
(['-W', 'ignore'] if sys.version_info[:2] == (2, 6) else []) +
35+
["-m", "bpython.curtsies", f.name],
3436
stderr=subprocess.PIPE,
3537
universal_newlines=True)
3638
(_, stderr) = p.communicate()

0 commit comments

Comments
 (0)