MCPcopy Create free account
hub / github.com/apache/arrow / test_s3_finalize_region_resolver

Function test_s3_finalize_region_resolver

python/pyarrow/tests/test_fs.py:2139–2155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2137
2138@pytest.mark.s3
2139def test_s3_finalize_region_resolver():
2140 # Same as test_s3_finalize(), but exercising region resolution
2141 code = """if 1:
2142 import pytest
2143 from pyarrow.fs import resolve_s3_region, ensure_s3_initialized, finalize_s3
2144
2145 resolve_s3_region('mf-nwp-models')
2146
2147 finalize_s3()
2148
2149 # Testing both cached and uncached accesses
2150 with pytest.raises(ValueError, match="S3 .* finalized"):
2151 resolve_s3_region('mf-nwp-models')
2152 with pytest.raises(ValueError, match="S3 .* finalized"):
2153 resolve_s3_region('arrow-datasets')
2154 """
2155 subprocess.check_call([sys.executable, "-c", code])
2156
2157
2158@pytest.mark.processes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected