Skip to content

Commit 757f298

Browse files
committed
Fix rest test with ssl_ca_bundle due to conflicts with OS environment
1 parent 370e770 commit 757f298

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/catalog/test_rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,10 @@ def test_request_session_with_ssl_ca_bundle() -> None:
14961496
},
14971497
}
14981498
with pytest.raises(OSError) as e:
1499+
if "REQUESTS_CA_BUNDLE" in os.environ:
1500+
os.environ.pop("REQUESTS_CA_BUNDLE")
1501+
if "CURL_CA_BUNDLE" in os.environ:
1502+
os.environ.pop("CURL_CA_BUNDLE")
14991503
# Missing namespace
15001504
RestCatalog("rest", **catalog_properties) # type: ignore
15011505
assert "Could not find a suitable TLS CA certificate bundle, invalid path: path_to_ca_bundle" in str(e.value)

0 commit comments

Comments
 (0)