Skip to content

Commit 2b0cac7

Browse files
TomAugspurgerjreback
authored andcommitted
TST: Silence lzma output (#29713)
This was leaking to stdout when the pytest `-s` flag was used.
1 parent 9cfd1b4 commit 2b0cac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pandas/tests/io/test_compression.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_with_missing_lzma():
140140
import pandas
141141
"""
142142
)
143-
subprocess.check_output([sys.executable, "-c", code])
143+
subprocess.check_output([sys.executable, "-c", code], stderr=subprocess.PIPE)
144144

145145

146146
def test_with_missing_lzma_runtime():
@@ -157,4 +157,4 @@ def test_with_missing_lzma_runtime():
157157
df.to_csv('foo.csv', compression='xz')
158158
"""
159159
)
160-
subprocess.check_output([sys.executable, "-c", code])
160+
subprocess.check_output([sys.executable, "-c", code], stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)