We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa08a03 commit 80d35b4Copy full SHA for 80d35b4
bpython/test/test_curtsies_repl.py
@@ -102,7 +102,7 @@ def test_repl(self):
102
def test_interactive(self):
103
interp = code.InteractiveInterpreter(locals={})
104
with captured_output() as (out, err):
105
- with tempfile.NamedTemporaryFile(suffix='.py') as f:
+ with tempfile.NamedTemporaryFile(mode='w', suffix='.py') as f:
106
f.write('from __future__ import division\n')
107
f.write('print 1/2\n')
108
f.flush()
0 commit comments