Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.tempdir = utils.Tempdir()
self.tempdir.setup()
self.filenames = [
self.tempdir.create_file(f, FILES[f])
for f in FILES]
self.fs = fs.OSFileSystem(self.tempdir.path)
self.env = environment.Environment(fs.Path([self.fs]), (3, 6))
def setUp(self):
self.tempdir = utils.Tempdir()
self.tempdir.setup()
filenames = [
self.tempdir.create_file(f, FILES[f])
for f in FILES]
self.fs = fs.OSFileSystem(self.tempdir.path)
env = environment.Environment(fs.Path([self.fs]), (3, 6))
self.graph = graph.ImportGraph.create(env, filenames)
def setUp(self):
self.tempdir = utils.Tempdir()
self.tempdir.setup()
self.filenames = [
self.tempdir.create_file(f, FILES[f])
for f in FILES]
self.fs = fs.OSFileSystem(self.tempdir.path)
self.env = environment.Environment(fs.Path([self.fs]), (3, 6))
def create_from_args(args):
python_version_string = args.python_version
python_version = utils.split_version(python_version_string)
path = path_from_pythonpath(args.pythonpath)
return Environment(path, python_version)