Skip to content

Commit ffe07f8

Browse files
CI testing for s3 reads from public buckets on 1.0.x - DO NOT MERGE
1 parent 98f0c3c commit ffe07f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/io/test_s3.py

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import pytest
44

5+
import pandas.util._test_decorators as td
6+
57
from pandas import read_csv
68

79
from pandas.io.common import is_s3_url
@@ -23,3 +25,10 @@ def test_streaming_s3_objects():
2325
for el in data:
2426
body = StreamingBody(BytesIO(el), content_length=len(el))
2527
read_csv(body)
28+
29+
30+
@td.skip_if_no("s3fs")
31+
def test_read_csv_from_public_bucket():
32+
# https://github.com/pandas-dev/pandas/issues/34626
33+
result = read_csv("s3://nyc-tlc/misc/taxi _zone_lookup.csv")
34+
assert result.shape == (265, 4)

0 commit comments

Comments
 (0)