(self)
| 94 | self.block = block |
| 95 | |
| 96 | def __iter__(self): |
| 97 | for cnt in range(self.number): |
| 98 | if self.block: |
| 99 | for _ in range(10): |
| 100 | time.sleep(1) |
| 101 | data = np.random.randint(0, 256, (2, 2, 3), dtype="uint8") |
| 102 | yield (data, cnt) |
| 103 | raise StopIteration |
| 104 | |
| 105 | |
| 106 | @pytest.mark.skipif( |