30a291416446ee95a349a2e292e0ee88645965a2,integration_test/test_recipyrc.py,TestRecipyrc,setup_method,#TestRecipyrc#,85

Before Change


        if os.path.isdir(recipy_dir):
            shutil.rmtree(recipy_dir)
        os.mkdir(recipy_dir)
        self.test_files = []

    def teardown_method(self, method):
        
        py.test-compliant teardown function, run after each test method,

After Change


            shutil.rmtree(recipy_dir)
        os.mkdir(recipy_dir)
        for recipyrc_file in [".recipyrc", "recipyrc"]:
            path = os.path.join(os.getcwd(), recipyrc_file)
            if os.path.isfile(path):
                os.remove(path)

    def teardown_method(self, method):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: recipy/recipy
Commit Name: 30a291416446ee95a349a2e292e0ee88645965a2
Time: 2016-09-21
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/test_recipyrc.py
Class Name: TestRecipyrc
Method Name: setup_method


Project Name: tflearn/tflearn
Commit Name: 2399144826ce08e9052859539450fd779678d4de
Time: 2016-12-19
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: restore


Project Name: recipy/recipy
Commit Name: 30a291416446ee95a349a2e292e0ee88645965a2
Time: 2016-09-21
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/test_recipyrc.py
Class Name: TestRecipyrc
Method Name: setup_method


Project Name: tflearn/tflearn
Commit Name: 2399144826ce08e9052859539450fd779678d4de
Time: 2016-12-19
Author: aymeric.damien@gmail.com
File Name: tflearn/helpers/trainer.py
Class Name: Trainer
Method Name: save