diff options
| author | Christian Clauss <cclauss@me.com> | 2020-11-29 01:04:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-29 01:04:17 +0100 |
| commit | 571703d2afacaf67671d6d823907c5bcacc3248b (patch) | |
| tree | 678ad138623b5495c53dbe0e66a09addd9fbcecf /cherrypy | |
| parent | 76d03df062d21e451858848b30b473ad12ed2719 (diff) | |
| download | cherrypy-git-571703d2afacaf67671d6d823907c5bcacc3248b.tar.gz | |
Update test_bus.py
Diffstat (limited to 'cherrypy')
| -rw-r--r-- | cherrypy/test/test_bus.py | 6 |
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): |
