summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 12:07:22 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 12:07:22 +0200
commitdf25ba7484f2bacab00531e7e0638efc4fd5022f (patch)
tree2cf14df9541e45bc0f1a694b59942fca4d0361cc /tests
parent27ad2564f30f1021a96addafb7b7eb6a7504c28f (diff)
downloadsqlparse-df25ba7484f2bacab00531e7e0638efc4fd5022f.tar.gz
Remove changing our stdout encoding.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cli.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index f1c005d..b681a60 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -80,7 +80,6 @@ def test_script():
def test_encoding_stdout(fpath, encoding, filepath, load_file, capfd):
path = filepath(fpath)
expected = load_file(fpath, encoding)
- sys.stdout.reconfigure(encoding=encoding)
sqlparse.cli.main([path, '--encoding', encoding])
out, _ = capfd.readouterr()
assert out == expected
@@ -109,7 +108,6 @@ def test_encoding_stdin(fpath, encoding, filepath, load_file, capfd):
old_stdin = sys.stdin
with open(path) as f:
sys.stdin = f
- sys.stdout.reconfigure(encoding=encoding)
sqlparse.cli.main(['-', '--encoding', encoding])
sys.stdin = old_stdin
out, _ = capfd.readouterr()