Skip to content

Commit

Permalink
Be slightly more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jul 10, 2024
1 parent 0945c87 commit bf50a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def periodicity():
# so allow a single failure.
bus = self.network.bus
msg = bus.recv(TIMEOUT)
if msg:
if msg is not None:
self.assertIsNone(bus.recv(TIMEOUT))


Expand Down
2 changes: 1 addition & 1 deletion test/test_nmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_nmt_master_node_guarding(self):
# A message may have been in flight when we stopped the timer,
# so allow a single failure.
msg = self.bus.recv(self.TIMEOUT)
if msg:
if msg is not None:
self.assertIsNone(self.bus.recv(self.TIMEOUT))


Expand Down

0 comments on commit bf50a22

Please sign in to comment.