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

Method setUp

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

Source from the content-addressed store, hash-verified

1981 """Test the FileType option/argument type for reading files"""
1982
1983 def setUp(self):
1984 super(TestFileTypeR, self).setUp()
1985 for file_name in ['foo', 'bar']:
1986 with open(os.path.join(self.temp_dir, file_name),
1987 'w', encoding="utf-8") as file:
1988 file.write(file_name)
1989 self.create_readonly_file('readonly')
1990
1991 argument_signatures = [
1992 Sig('-x', type=FileType()),

Callers

nothing calls this directly

Calls 6

superClass · 0.85
create_readonly_fileMethod · 0.80
openFunction · 0.50
setUpMethod · 0.45
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected