Skip to content

Commit 36f3a79

Browse files
committed
TST: placement of network error catching in s3 tests
1 parent 324379c commit 36f3a79

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ def test_read_inline_jsonl(self):
10381038
expected = DataFrame([[1, 2], [1, 2]], columns=['a', 'b'])
10391039
assert_frame_equal(result, expected)
10401040

1041+
@tm.network
10411042
def test_read_s3_jsonl(self, s3_resource):
10421043
pytest.importorskip('s3fs')
10431044
# GH17200

pandas/tests/io/parser/test_network.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ def check_compressed_urls(salaries_table, compression, extension, mode,
4545
tm.assert_frame_equal(url_table, salaries_table)
4646

4747

48+
@tm.network
4849
class TestS3(object):
49-
@tm.network
50+
5051
def test_parse_public_s3_bucket(self):
5152
pytest.importorskip('s3fs')
5253
# more of an integration test due to the not-public contents portion

pandas/tests/io/test_parquet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ def test_categorical_unsupported(self, pa_lt_070):
432432
df = pd.DataFrame({'a': pd.Categorical(list('abc'))})
433433
self.check_error_on_write(df, pa, NotImplementedError)
434434

435+
@tm.network
435436
def test_s3_roundtrip(self, df_compat, s3_resource, pa):
436437
# GH #19134
437438
check_round_trip(df_compat, pa,
@@ -498,6 +499,7 @@ def test_filter_row_groups(self, fp):
498499
result = read_parquet(path, fp, filters=[('a', '==', 0)])
499500
assert len(result) == 1
500501

502+
@tm.network
501503
def test_s3_roundtrip(self, df_compat, s3_resource, fp):
502504
# GH #19134
503505
check_round_trip(df_compat, fp,

0 commit comments

Comments
 (0)