Skip to content

Commit 4836a96

Browse files
jbrockmendelproost
authored andcommitted
TST: fix compression tests when run without virtualenv/condaenv (pandas-dev#28051)
1 parent 7e91aa6 commit 4836a96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/test_compression.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import contextlib
22
import os
33
import subprocess
4+
import sys
45
import textwrap
56
import warnings
67

@@ -139,7 +140,7 @@ def test_with_missing_lzma():
139140
import pandas
140141
"""
141142
)
142-
subprocess.check_output(["python", "-c", code])
143+
subprocess.check_output([sys.executable, "-c", code])
143144

144145

145146
def test_with_missing_lzma_runtime():
@@ -156,4 +157,4 @@ def test_with_missing_lzma_runtime():
156157
df.to_csv('foo.csv', compression='xz')
157158
"""
158159
)
159-
subprocess.check_output(["python", "-c", code])
160+
subprocess.check_output([sys.executable, "-c", code])

0 commit comments

Comments
 (0)