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

Method setUp

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

Source from the content-addressed store, hash-verified

1882 """Test the FileType option/argument type for reading files"""
1883
1884 def setUp(self):
1885 super(TestFileTypeR, self).setUp()
1886 for file_name in ['foo', 'bar']:
1887 with open(os.path.join(self.temp_dir, file_name),
1888 'w', encoding="utf-8") as file:
1889 file.write(file_name)
1890 self.create_readonly_file('readonly')
1891
1892 argument_signatures = [
1893 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