Skip to content

Commit df25ba7

Browse files
committed
Remove changing our stdout encoding.
1 parent 27ad256 commit df25ba7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test_cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_script():
8080
def test_encoding_stdout(fpath, encoding, filepath, load_file, capfd):
8181
path = filepath(fpath)
8282
expected = load_file(fpath, encoding)
83-
sys.stdout.reconfigure(encoding=encoding)
8483
sqlparse.cli.main([path, '--encoding', encoding])
8584
out, _ = capfd.readouterr()
8685
assert out == expected
@@ -109,7 +108,6 @@ def test_encoding_stdin(fpath, encoding, filepath, load_file, capfd):
109108
old_stdin = sys.stdin
110109
with open(path) as f:
111110
sys.stdin = f
112-
sys.stdout.reconfigure(encoding=encoding)
113111
sqlparse.cli.main(['-', '--encoding', encoding])
114112
sys.stdin = old_stdin
115113
out, _ = capfd.readouterr()

0 commit comments

Comments
 (0)