Skip to content

Commit 7954b5e

Browse files
committed
tests: use 'not in' for set membership test
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 parent 533ab37 commit 7954b5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/mctpenv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ async def send_control(self, sock, cmd):
439439
addr.set_ext(self.iface.ifindex, self.lladdr)
440440

441441
key = (typ, cmd.iid)
442-
assert not key in self.commands
442+
assert key not in self.commands
443443

444444
self.commands[key] = cmd
445445

0 commit comments

Comments
 (0)