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

Method setUp

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

Source from the content-addressed store, hash-verified

1923 """Test the FileType option/argument type for reading files"""
1924
1925 def setUp(self):
1926 super(TestFileTypeRB, self).setUp()
1927 for file_name in ['foo', 'bar']:
1928 with open(os.path.join(self.temp_dir, file_name),
1929 'w', encoding="utf-8") as file:
1930 file.write(file_name)
1931
1932 argument_signatures = [
1933 Sig('-x', type=FileType('rb')),

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected