Skip to content

Commit 762c358

Browse files
author
Anselm Kruis
committed
minor cleanup
1 parent 28071cd commit 762c358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stackless_testsuite/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def tearDown(self):
115115
next_ = current.next
116116
current.kill()
117117
current = next_
118-
self.assertEqual(stackless.getruncount(
119-
), 1, "Leakage from this test, with %d tasklets still in the scheduler" % (stackless.getruncount() - 1))
118+
run_count = stackless.getruncount()
119+
self.assertEqual(run_count, 1, "Leakage from this test, with %d tasklets still in the scheduler" % (run_count - 1))
120120
if withThreads:
121121
expected_thread_count = len(self.__preexisting_threads)
122122
active_count = threading.active_count()

0 commit comments

Comments
 (0)