Skip to content

Commit

Permalink
Add __getstate__ to blacklisted methods, present in Py 3.11
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Jun 19, 2023
1 parent e814134 commit 3f78a51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/unit/test_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_aes_funcs_black(self):
"__format__",
"__ge__",
"__getattribute__",
"__getstate__",
"__gt__",
"__hash__",
"__init__",
Expand All @@ -71,9 +72,9 @@ def test_aes_funcs_black(self):
"__sizeof__",
"__str__",
"__subclasshook__",
"destroy",
"get_method",
"run_func",
"destroy",
]
for name in dir(aes_funcs):
if name in aes_funcs.expose_methods:
Expand Down Expand Up @@ -108,6 +109,7 @@ def test_clear_funcs_black(self):
"__format__",
"__ge__",
"__getattribute__",
"__getstate__",
"__gt__",
"__hash__",
"__init__",
Expand All @@ -128,9 +130,9 @@ def test_clear_funcs_black(self):
"_prep_pub",
"_send_pub",
"_send_ssh_pub",
"get_method",
"destroy",
"connect",
"destroy",
"get_method",
]
for name in dir(clear_funcs):
if name in clear_funcs.expose_methods:
Expand Down

0 comments on commit 3f78a51

Please sign in to comment.