We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 769cb95 commit aaaa561Copy full SHA for aaaa561
pandas/tests/io/test_parquet.py
@@ -123,16 +123,10 @@ def test_write_with_index(self, engine):
123
def test_compression(self, engine, compression):
124
125
if compression == 'snappy':
126
- try:
127
- import snappy # noqa
128
- except ImportError:
129
- pytest.skip("no snappy, skipping")
+ pytest.importorskip('snappy')
130
131
elif compression == 'brotli':
132
133
- import brotli # noqa
134
135
- pytest.skip("no brotli, skipping")
+ pytest.importorskip('brotli')
136
137
df = pd.DataFrame({'A': [1, 2, 3]})
138
self.check_round_trip(df, engine, compression=compression)
0 commit comments