5f00a7c91b760f3b98c0323224f36802bde0bc4d,test/test_scenario/test_scenario.py,ScenarioTest,tearDown,#ScenarioTest#,327

Before Change


                          ["feature1", "feature2", "feature3"])

    def tearDown(self):
        shutil.rmtree(self.test_scenario_dict["output_dir"], ignore_errors=True)
        os.chdir(self.current_dir)

if __name__ == "__main__":
    unittest.main()

After Change


            if output_dir:
                shutil.rmtree(output_dir, ignore_errors=True)
        for output_file in self.output_files:
            if output_file:
                try:
                    os.remove(output_file)
                except FileNotFoundError as e:
                    pass
        os.chdir(self.current_dir)

    def test_Exception(self):
        with self.assertRaises(TypeError):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: automl/SMAC3
Commit Name: 5f00a7c91b760f3b98c0323224f36802bde0bc4d
Time: 2017-12-18
Author: kimmiga@informatik.uni-freiburg.de
File Name: test/test_scenario/test_scenario.py
Class Name: ScenarioTest
Method Name: tearDown


Project Name: facebook/FAI-PEP
Commit Name: 782a47a3e4e494a06abf60eebbb36ce165b5e256
Time: 2019-02-22
Author: huaminli@fb.com
File Name: benchmarking/utils/build_program.py
Class Name:
Method Name: buildProgramPlatform


Project Name: facebook/FAI-PEP
Commit Name: e6db873a2448f6838acc3b9c34307300e3539eba
Time: 2018-04-11
Author: feisun@fb.com
File Name: benchmarking/utils/build_program.py
Class Name:
Method Name: buildProgramPlatform