Fix E741 and E722 flake errors

This commit is contained in:
Bruno Oliveira
2017-11-22 20:00:39 -02:00
parent 635d3d02cb
commit 58f7291a99
4 changed files with 24 additions and 24 deletions

View File

@@ -83,10 +83,10 @@ class TestStatRecorder:
tmp = tmpdir
sd = StatRecorder([tmp])
l = [True, False]
monkeypatch.setattr(StatRecorder, 'check', lambda self: l.pop())
ret_values = [True, False]
monkeypatch.setattr(StatRecorder, 'check', lambda self: ret_values.pop())
sd.waitonchange(checkinterval=0.2)
assert not l
assert not ret_values
class TestRemoteControl: