summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sched.py2
-rw-r--r--Lib/test/test_sched.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sched.py b/Lib/sched.py
index ccf8ce9..b9a7ad1 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -165,4 +165,4 @@ class scheduler:
# the actual order they would be retrieved.
with self._lock:
events = self._queue[:]
- return map(heapq.heappop, [events]*len(events))
+ return list(map(heapq.heappop, [events]*len(events)))
diff --git a/Lib/test/test_sched.py b/Lib/test/test_sched.py
index 1fe6ad4..070886d 100644
--- a/Lib/test/test_sched.py
+++ b/Lib/test/test_sched.py
@@ -172,7 +172,7 @@ class TestCase(unittest.TestCase):
e3 = scheduler.enterabs(now + 0.03, 1, fun)
# queue property is supposed to return an order list of
# upcoming events
- self.assertEqual(list(scheduler.queue), [e1, e2, e3, e4, e5])
+ self.assertEqual(scheduler.queue, [e1, e2, e3, e4, e5])
def test_args_kwargs(self):
flag = []