Skip to content

Commit

Permalink
silence bandit security false positive (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Feb 22, 2023
1 parent f66646f commit 224d01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 224d01a

Please sign in to comment.