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

Method setUp

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

Source from the content-addressed store, hash-verified

1905class TestFileTypeDefaults(TempDirMixin, ParserTestCase):
1906 """Test that a file is not created unless the default is needed"""
1907 def setUp(self):
1908 super(TestFileTypeDefaults, self).setUp()
1909 file = open(os.path.join(self.temp_dir, 'good'), 'w', encoding="utf-8")
1910 file.write('good')
1911 file.close()
1912
1913 argument_signatures = [
1914 Sig('-c', type=FileType('r'), default='no-file.txt'),

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected