(self)
| 231 | q.get_nowait() |
| 232 | |
| 233 | def test_shrinking_queue(self): |
| 234 | # issue 10110 |
| 235 | q = self.type2test(3) |
| 236 | q.put(1) |
| 237 | q.put(2) |
| 238 | q.put(3) |
| 239 | with self.assertRaises(self.queue.Full): |
| 240 | q.put_nowait(4) |
| 241 | self.assertEqual(q.qsize(), 3) |
| 242 | q.maxsize = 2 # shrink the queue |
| 243 | with self.assertRaises(self.queue.Full): |
| 244 | q.put_nowait(4) |
| 245 | |
| 246 | def test_shutdown_empty(self): |
| 247 | q = self.type2test() |
nothing calls this directly
no test coverage detected