(tar)
| 368 | def test_list_members(self): |
| 369 | tio = io.TextIOWrapper(io.BytesIO(), 'ascii', newline='\n') |
| 370 | def members(tar): |
| 371 | for tarinfo in tar.getmembers(): |
| 372 | if 'reg' in tarinfo.name: |
| 373 | yield tarinfo |
| 374 | with support.swap_attr(sys, 'stdout', tio): |
| 375 | self.tar.list(verbose=False, members=members(self.tar)) |
| 376 | out = tio.detach().getvalue() |
nothing calls this directly
no test coverage detected