Kaydet (Commit) 154bc7c9 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

SF 1676321: empty() returned wrong result

üst d59ea47e
...@@ -72,7 +72,7 @@ class scheduler: ...@@ -72,7 +72,7 @@ class scheduler:
def empty(self): def empty(self):
"""Check whether the queue is empty.""" """Check whether the queue is empty."""
return not not self.queue return not self.queue
def run(self): def run(self):
"""Execute events until the queue is empty. """Execute events until the queue is empty.
......
...@@ -197,6 +197,8 @@ Extension Modules ...@@ -197,6 +197,8 @@ Extension Modules
Library Library
------- -------
- Bugs #1676321: the empty() function in sched.py returned the wrong result
- unittest now verifies more of its assumptions. In particular, TestCase - unittest now verifies more of its assumptions. In particular, TestCase
and TestSuite subclasses (not instances) are no longer accepted in and TestSuite subclasses (not instances) are no longer accepted in
TestSuite.addTest(). This should cause no incompatibility since it TestSuite.addTest(). This should cause no incompatibility since it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment