Skip to content

Commit

Permalink
fix some boolean comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Apr 2, 2024
1 parent d354b8b commit 50ecf38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions zmq/tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ def test_router_dealer(self):
dealer.send(msg1)
self.recv(router)
more = router.rcvmore
assert more is True
assert more
msg2 = self.recv(router)
assert msg1 == msg2
more = router.rcvmore
assert more is False
assert not router.rcvmore

def test_basic_multipart(self):
a, b = self.create_bound_pair(zmq.PAIR, zmq.PAIR)
Expand Down
4 changes: 2 additions & 2 deletions zmq/tests/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def test_curve(self):
assert server.mechanism == zmq.CURVE
assert client.mechanism == zmq.CURVE

assert server.get(zmq.CURVE_SERVER) is True
assert client.get(zmq.CURVE_SERVER) is False
assert server.get(zmq.CURVE_SERVER)
assert not client.get(zmq.CURVE_SERVER)

with self.zap():
iface = 'tcp://127.0.0.1'
Expand Down

0 comments on commit 50ecf38

Please sign in to comment.