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

Method setUp

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

Source from the content-addressed store, hash-verified

1758 """Test reading arguments from a file"""
1759
1760 def setUp(self):
1761 super(TestArgumentsFromFileConverter, self).setUp()
1762 file_texts = [
1763 ('hello', b'hello world!\n'),
1764 ]
1765 for path, text in file_texts:
1766 with open(path, 'wb') as file:
1767 file.write(text)
1768
1769 class FromFileConverterArgumentParser(ErrorRaisingArgumentParser):
1770

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