summaryrefslogtreecommitdiff
path: root/cherrypy
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2020-11-29 01:04:17 +0100
committerGitHub <noreply@github.com>2020-11-29 01:04:17 +0100
commit571703d2afacaf67671d6d823907c5bcacc3248b (patch)
tree678ad138623b5495c53dbe0e66a09addd9fbcecf /cherrypy
parent76d03df062d21e451858848b30b473ad12ed2719 (diff)
downloadcherrypy-git-571703d2afacaf67671d6d823907c5bcacc3248b.tar.gz
Update test_bus.py
Diffstat (limited to 'cherrypy')
-rw-r--r--cherrypy/test/test_bus.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cherrypy/test/test_bus.py b/cherrypy/test/test_bus.py
index 35824c7e..af6a0a61 100644
--- a/cherrypy/test/test_bus.py
+++ b/cherrypy/test/test_bus.py
@@ -269,7 +269,11 @@ def test_block(bus, log_tracker):
'Waiting for child threads to terminate...',
]
# If the last message mentions an indeterminable thread name then ignore it
- assert expected in (log_tracker.log_entries, log_tracker.log_entries[:-1])
+ len_expected = len(expected)
+ assert log_tracker.log_entries[:len_expected] == expected
+ assert len(log_tracker.log_entries[len_expected:]) - len_expected in (0, 1), (
+ 'No more than one extra log line with the thread name expected'
+ )
def test_start_with_callback(bus):