| 837 | self.assertIs(fileinput._state, instance) |
| 838 | |
| 839 | class InvocationRecorder: |
| 840 | |
| 841 | def __init__(self): |
| 842 | self.invocation_count = 0 |
| 843 | |
| 844 | def __call__(self, *args, **kwargs): |
| 845 | self.invocation_count += 1 |
| 846 | self.last_invocation = (args, kwargs) |
| 847 | return io.BytesIO(b'some bytes') |
| 848 | |
| 849 | |
| 850 | class Test_hook_compressed(unittest.TestCase): |