diff --git a/src/openforms/tests/test_self_signed_certificates.py b/src/openforms/tests/test_self_signed_certificates.py index 8b813109a6..3c43464099 100644 --- a/src/openforms/tests/test_self_signed_certificates.py +++ b/src/openforms/tests/test_self_signed_certificates.py @@ -50,6 +50,8 @@ def tearDownClass(cls): if cls._original_requests_ca is not None: os.environ["REQUESTS_CA_BUNDLE"] = cls._original_requests_ca + elif "REQUESTS_CA_BUNDLE" in os.environ: + del os.environ["REQUESTS_CA_BUNDLE"] class SelfSignedCertificateTests(RestoreOriginalCABundleMixin, TestCase):