MCPcopy Index your code
hub / github.com/python/cpython / test_create_command_verbose

Method test_create_command_verbose

Lib/test/test_tarfile.py:2941–2955  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2939 os_helper.unlink(tmpname)
2940
2941 def test_create_command_verbose(self):
2942 files = [support.findfile('tokenize_tests.txt',
2943 subdir='tokenizedata'),
2944 support.findfile('tokenize_tests-no-coding-cookie-'
2945 'and-utf8-bom-sig-only.txt',
2946 subdir='tokenizedata')]
2947 for opt in '-v', '--verbose':
2948 try:
2949 out = self.tarfilecmd(opt, '-c', tmpname, *files,
2950 PYTHONIOENCODING='utf-8')
2951 self.assertIn(b' file created.', out)
2952 with tarfile.open(tmpname) as tar:
2953 tar.getmembers()
2954 finally:
2955 os_helper.unlink(tmpname)
2956
2957 def test_create_command_dotless_filename(self):
2958 files = [support.findfile('tokenize_tests.txt', subdir='tokenizedata')]

Callers

nothing calls this directly

Calls 5

tarfilecmdMethod · 0.95
assertInMethod · 0.80
getmembersMethod · 0.80
openMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected