Skip to content

Commit beb2e11

Browse files
committed
Fix test on py27
1 parent f997fc9 commit beb2e11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

testing/test_terminal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import collections
66
import sys
77

8-
import io
9-
108
import pluggy
119
import _pytest._code
1210
import py
@@ -998,7 +996,7 @@ def write_and_check(s, expected):
998996

999997
def test_write_updates_line_chars_count(testdir):
1000998
config = testdir.parseconfig()
1001-
f = io.StringIO()
999+
f = py.io.TextIO()
10021000
tr = TerminalReporter(config, file=f)
10031001
assert tr._current_line_chars == 0
10041002
tr.write('foo')

0 commit comments

Comments
 (0)