(self)
| 89 | class test_regen: |
| 90 | |
| 91 | def test_list(self): |
| 92 | l = [1, 2] |
| 93 | r = regen(iter(l)) |
| 94 | assert regen(l) is l |
| 95 | assert r == l |
| 96 | assert r == l # again |
| 97 | assert r.__length_hint__() == 0 |
| 98 | |
| 99 | fun, args = r.__reduce__() |
| 100 | assert fun(*args) == l |
| 101 | |
| 102 | @pytest.fixture |
| 103 | def g(self): |
nothing calls this directly
no test coverage detected