MCPcopy Index your code
hub / github.com/RustPython/RustPython / members

Method members

Lib/test/test_tarfile.py:372–375  ·  view source on GitHub ↗
(tar)

Source from the content-addressed store, hash-verified

370 def test_list_members(self):
371 tio = io.TextIOWrapper(io.BytesIO(), 'ascii', newline='\n')
372 def members(tar):
373 for tarinfo in tar.getmembers():
374 if 'reg' in tarinfo.name:
375 yield tarinfo
376 with support.swap_attr(sys, 'stdout', tio):
377 self.tar.list(verbose=False, members=members(self.tar))
378 out = tio.detach().getvalue()

Callers

nothing calls this directly

Calls 1

getmembersMethod · 0.80

Tested by

no test coverage detected