Skip to content

Commit

Permalink
test: Add missing io.BufferedReader to simulate sys.stdin.buffer corr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
jpmckinney committed Apr 28, 2024
1 parent 0334d51 commit 5cdead2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def stderr_as_stdout():
@contextmanager
def stdin_as_string(content):
temp = sys.stdin
sys.stdin = io.TextIOWrapper(content)
sys.stdin = io.TextIOWrapper(io.BufferedReader(content))
yield
sys.stdin = temp

Expand Down

0 comments on commit 5cdead2

Please sign in to comment.