Skip to content
Merged
Prev Previous commit
Next Next commit
Fix linter issue
  • Loading branch information
benjaminJohnson2204 committed Feb 13, 2024
commit 5b022fce6b7083433eb6c51aaeb5140df0d91ad4
5 changes: 3 additions & 2 deletions Lib/test/_test_atexit.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ def __eq__(self, o):
self.action(o)
return self.eq_ret_val(o)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.eq_ret_val is not callable.


for action in lambda o: atexit.unregister(self), lambda o: atexit.unregister(o), lambda o: atexit._clear():
for eq_ret_val in NotImplemented, True:
for action in lambda o: atexit.unregister(self), \
lambda o: atexit.unregister(o), lambda o: atexit._clear():
Comment thread
benjaminJohnson2204 marked this conversation as resolved.
Outdated
for eq_ret_val in NotImplemented, True:
with self.subTest(action=action, eq_ret_val=eq_ret_val):
cnt = 0
f1 = Func(action, eq_ret_val)
Expand Down