()
| 2137 | |
| 2138 | @pytest.mark.s3 |
| 2139 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected