Skip to content

Commit 55fa601

Browse files
committed
Fix potentially unbound variable
1 parent 68bee30 commit 55fa601

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bpython/test/test_curtsies_painting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def test_enter_text(self):
119119
self.assert_paint(screen, (0, 9))
120120

121121
def test_run_line(self):
122+
orig_stdout = sys.stdout
122123
try:
123-
orig_stdout = sys.stdout
124124
sys.stdout = self.repl.stdout
125125
[self.repl.add_normal_character(c) for c in "1 + 1"]
126126
self.repl.on_enter(new_code=False)

0 commit comments

Comments
 (0)