From 224d01a1f936bff09bb5e09b7e587777bcb77a4d Mon Sep 17 00:00:00 2001 From: Jasha Sommer-Simpson <8935917+Jasha10@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:29:00 -0600 Subject: [PATCH] silence bandit security false positive (#2593) --- tests/test_errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index 304d6947774..c4a0b64b650 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -7,7 +7,7 @@ def test_pickle_missing_config_exception() -> None: exception = MissingConfigException("msg", "filename", ["option1", "option2"]) x = pickle.dumps(exception) - loaded = pickle.loads(x) + loaded = pickle.loads(x) # nosec assert isinstance(loaded, MissingConfigException) assert loaded.args == ("msg",) assert loaded.missing_cfg_file == "filename"