Skip to content

Commit 2564575

Browse files
committed
Fix build
1 parent 285a8f1 commit 2564575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_testing/_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
)
1111
import zipfile
1212

13-
import pytest
14-
1513
from pandas._typing import FilePathOrBuffer
1614
from pandas.compat import (
1715
get_lzma_file,
@@ -396,6 +394,8 @@ def write_to_compressed(compression, path, data, dest="test"):
396394
elif compression == "bz2":
397395
compress_method = bz2.BZ2File
398396
elif compression == "zstd":
397+
import pytest
398+
399399
zstd = pytest.importorskip("zstandard")
400400
compress_method = zstd.open
401401
elif compression == "xz":

0 commit comments

Comments
 (0)