fix some pyflakes

This commit is contained in:
Bastian Schroll 2019-10-23 22:11:57 +02:00
parent 464c0c2298
commit 1d90b3d38b
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
3 changed files with 7 additions and 7 deletions

View file

@ -186,7 +186,7 @@ def test_serverStopsWhileConnected(getRunningServer, getClient):
while getClient.isConnected:
time.sleep(0.1)
timeout = timeout - 1
if timeout is 0:
if timeout == 0:
break
assert timeout
@ -210,7 +210,7 @@ def test_serverGetOutput(getRunningServer):
assert getRunningServer._alarmQueue.qsize() == 2
assert getRunningServer._alarmQueue.get(True, 1)[1] == "test1"
assert getRunningServer._alarmQueue.get(True, 1)[1] == "test2"
assert getRunningServer._alarmQueue.qsize() is 0 # Last _check must be None
assert getRunningServer._alarmQueue.qsize() == 0 # Last _check must be None
# disconnect all
assert testClient1.disconnect()
assert testClient2.disconnect()