From aceb651c5c396dd4038ab03904dd09f82c23ae95 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 29 Nov 2020 20:28:55 +0100 Subject: <= 1 --- cherrypy/test/test_bus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cherrypy/test/test_bus.py b/cherrypy/test/test_bus.py index 330cbbef..10b0c9c1 100644 --- a/cherrypy/test/test_bus.py +++ b/cherrypy/test/test_bus.py @@ -271,7 +271,7 @@ def test_block(bus, log_tracker): # If the last message mentions an indeterminable thread name then ignore it len_expected = len(expected) assert log_tracker.log_entries[:len_expected] == expected - assert len(log_tracker.log_entries) - len_expected in (0, 1), ( + assert len(log_tracker.log_entries) - len_expected <= 1, ( 'No more than one extra log line with the thread name expected' ) -- cgit v1.2.1