def setUp(self):
    self.directory = tempfile.mkdtemp()
    self.addCleanup(support.rmtree, self.directory)
    self.pkgdir = os.path.join(self.directory, 'foo')
    os.mkdir(self.pkgdir)
    self.pkgdir_cachedir = os.path.join(self.pkgdir, '__pycache__')
    self.initfn = script_helper.make_script(self.pkgdir, '__init__', '')
    self.barfn = script_helper.make_script(self.pkgdir, 'bar', '')
def setUp(self):
    self.directory = tempfile.mkdtemp()
    self.addCleanup(support.rmtree, self.directory)
    self.pkgdir = os.path.join(self.directory, 'foo')
    os.mkdir(self.pkgdir)
    self.pkgdir_cachedir = os.path.join(self.pkgdir, '__pycache__')
    self.initfn = script_helper.make_script(self.pkgdir, '__init__', )
    self.barfn = script_helper.make_script(self.pkgdir, 'bar', )