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

Method setUp

Lib/test/test_argparse.py:1859–1866  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1857 """Test reading arguments from a file"""
1858
1859 def setUp(self):
1860 super(TestArgumentsFromFileConverter, self).setUp()
1861 file_texts = [
1862 ('hello', b'hello world!\n'),
1863 ]
1864 for path, text in file_texts:
1865 with open(path, 'wb') as file:
1866 file.write(text)
1867
1868 class FromFileConverterArgumentParser(ErrorRaisingArgumentParser):
1869

Callers

nothing calls this directly

Calls 4

superClass · 0.85
openFunction · 0.50
setUpMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected