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

Method setUp

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

Source from the content-addressed store, hash-verified

1812 """Test reading arguments from a file"""
1813
1814 def setUp(self):
1815 super(TestArgumentsFromFile, self).setUp()
1816 file_texts = [
1817 ('hello', os.fsencode(self.hello) + b'\n'),
1818 ('recursive', b'-a\n'
1819 b'A\n'
1820 b'@hello'),
1821 ('invalid', b'@no-such-path\n'),
1822 ('undecodable', self.undecodable + b'\n'),
1823 ]
1824 for path, text in file_texts:
1825 with open(path, 'wb') as file:
1826 file.write(text)
1827
1828 parser_signature = Sig(fromfile_prefix_chars='@')
1829 argument_signatures = [

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