mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Remove unnecessary 'rasterio.Env()' calls.
This commit is contained in:
parent
e5b72e522d
commit
dce70ca72d
@ -207,9 +207,8 @@ def test_open_with_env(gdalenv):
|
||||
@pytest.mark.network
|
||||
def test_s3_open_with_session(gdalenv):
|
||||
"""Read from S3 demonstrating lazy credentials."""
|
||||
with rasterio.Env():
|
||||
with rasterio.open(L8TIF) as dataset:
|
||||
assert dataset.count == 1
|
||||
with rasterio.open(L8TIF) as dataset:
|
||||
assert dataset.count == 1
|
||||
|
||||
|
||||
@mingdalversion
|
||||
@ -225,9 +224,8 @@ def test_s3_open_with_default_session(gdalenv):
|
||||
@pytest.mark.network
|
||||
def test_open_https_vsicurl(gdalenv):
|
||||
"""Read from HTTPS URL."""
|
||||
with rasterio.Env():
|
||||
with rasterio.open(httpstif) as dataset:
|
||||
assert dataset.count == 1
|
||||
with rasterio.open(httpstif) as dataset:
|
||||
assert dataset.count == 1
|
||||
|
||||
|
||||
# CLI tests.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user