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

Method setUp

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

Source from the content-addressed store, hash-verified

2004class TestFileTypeDefaults(TempDirMixin, ParserTestCase):
2005 """Test that a file is not created unless the default is needed"""
2006 def setUp(self):
2007 super(TestFileTypeDefaults, self).setUp()
2008 file = open(os.path.join(self.temp_dir, 'good'), 'w', encoding="utf-8")
2009 file.write('good')
2010 file.close()
2011
2012 argument_signatures = [
2013 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