Skip to content

Commit 449c48d

Browse files
committed
Remove a comment, and a bad insert in test file
1 parent d3b29e5 commit 449c48d

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎Lib/asyncio/queues.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ def put_nowait(self, item):
175175
If no free slot is immediately available, raise QueueFull.
176176
177177
Raises QueueShutDown if the queue has been shut down.
178-
179-
Raises QueueWithPendingTasks if there are pending putters
180-
or a woken putter is about to put an item into the queue.
181178
"""
182179
if self._is_shutdown:
183180
raise QueueShutDown

‎Lib/test/test_asyncio/test_base_events.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def setUp(self):
181181
self.loop = base_events.BaseEventLoop()
182182
self.loop._selector = mock.Mock()
183183
self.loop._selector.select.return_value = ()
184-
self.loop._process_events = mock.Mock()
185184
self.set_event_loop(self.loop)
186185

187186
def test_not_implemented(self):
@@ -195,8 +194,8 @@ def test_not_implemented(self):
195194
self.assertRaises(
196195
NotImplementedError,
197196
self.loop._make_datagram_transport, m, m)
198-
#self.assertRaises(
199-
# NotImplementedError, self.loop._process_events, [])
197+
self.assertRaises(
198+
NotImplementedError, self.loop._process_events, [])
200199
self.assertRaises(
201200
NotImplementedError, self.loop._write_to_self)
202201
self.assertRaises(

0 commit comments

Comments
 (0)