예제 #1
0
  @Override
  protected void setUp() throws Exception {
    baseDir =
        new File(REF.getFileAbsolutePath(new File("InterpreterInfoBuilderTest.temporary_dir")));
    try {
      REF.deleteDirectoryTree(baseDir);
    } catch (Exception e) {
      // ignore
    }

    libDir = new File(baseDir, "Lib");
    libDir.mkdirs();

    REF.writeStrToFile("class Module1:pass", new File(libDir, "module1.py"));
    REF.writeStrToFile("class Module2:pass", new File(libDir, "module2.py"));
    REF.writeStrToFile("class Module3:pass", new File(libDir, "module3.py"));

    PydevTestUtils.setTestPlatformStateLocation();
    REF.IN_TESTS = true;
  }
예제 #2
0
 @Override
 protected void tearDown() throws Exception {
   REF.deleteDirectoryTree(baseDir);
 }