mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
SF 1676321: empty() returned wrong result
This commit is contained in:
parent
d59ea47e0c
commit
154bc7c9bd
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue