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