Skip to content

Commit 0de6e8e

Browse files
committed
Found the reason...
1 parent e98032d commit 0de6e8e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ci/deps/travis-36-doc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ channels:
55
- r
66
dependencies:
77
- beautifulsoup4
8+
- botocore>=1.11.0
89
- bottleneck
910
- cython>=0.28.2
1011
- fastparquet

pandas/tests/io/conftest.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
from distutils.version import LooseVersion
2+
13
import pytest
24
from pandas.io.parsers import read_csv
35

6+
from pandas.io.common import _get_handle
47

58
@pytest.fixture
69
def tips_file(datapath):
@@ -37,6 +40,9 @@ def s3_resource(tips_file, jsonl_file):
3740
"""
3841
pytest.importorskip('s3fs')
3942
boto3 = pytest.importorskip('boto3')
43+
botocore = pytest.importorskip('botocore')
44+
if LooseVersion(botocore.__version__) < LooseVersion("1.11.0"):
45+
pytest.skip("botocore is leaking resources before 1.11.0")
4046
moto = pytest.importorskip('moto')
4147

4248
test_s3_files = [

0 commit comments

Comments
 (0)