From 0e6de532de03ab88a0fafb00cf4ffc51acbb4cb9 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 28 Jul 2019 11:35:05 +0100 Subject: [PATCH] [stream-refactor] fix testlib assertion format string --- tests/testlib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testlib.py b/tests/testlib.py index e0ab827d..3eeaa461 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -331,7 +331,9 @@ class TestCase(unittest2.TestCase): for name in counts: assert counts[name] == 1, \ - 'Found %d copies of thread %r running after tests.' % (name,) + 'Found %d copies of thread %r running after tests.' % ( + counts[name], name + ) def _teardown_check_fds(self): mitogen.core.Latch._on_fork()