Skip to content

Commit bc30ab1

Browse files
TomAugspurgerproost
authored andcommitted
TST: Silence lzma output (pandas-dev#29713)
This was leaking to stdout when the pytest `-s` flag was used.
1 parent 8a75113 commit bc30ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)