e513059dd85ee2d9a267c8197386eaf2b135f38a,tests/tpot_tests.py,,test_save_periodic_pipeline,#,1063

Before Change



        assert_in("Failed saving periodic pipeline, exception", our_file.read())
        // clean up
        for f in os.listdir("./"):
            if search("pipeline_", f):
                os.remove(os.path.join("./", f))

def test_save_periodic_pipeline_2():
    Assert that _save_periodic_pipeline creates the checkpoint folder and exports to it if it didn"t exist
    tpot_obj = TPOTClassifier(
        random_state=42,

After Change


        tpot_obj._last_pipeline_write = datetime.now()
        sleep(0.11)
        tpot_obj._output_best_pipeline_period_seconds = 0.1
        tmpdir = mkdtemp() + "/"
        tpot_obj.periodic_checkpoint_folder = tmpdir
        // reset _pareto_front to rasie exception
        tpot_obj._pareto_front = None

        tpot_obj._save_periodic_pipeline(1)
        our_file.seek(0)

        assert_in("Failed saving periodic pipeline, exception", our_file.read())
        //clean up
        rmtree(tmpdir)


def test_save_periodic_pipeline_2():
    Assert that _save_periodic_pipeline creates the checkpoint folder and exports to it if it didn"t exist
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: EpistasisLab/tpot
Commit Name: e513059dd85ee2d9a267c8197386eaf2b135f38a
Time: 2018-09-20
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_save_periodic_pipeline


Project Name: EpistasisLab/tpot
Commit Name: e513059dd85ee2d9a267c8197386eaf2b135f38a
Time: 2018-09-20
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_save_periodic_pipeline_2


Project Name: EpistasisLab/tpot
Commit Name: e513059dd85ee2d9a267c8197386eaf2b135f38a
Time: 2018-09-20
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_check_periodic_pipeline_2


Project Name: EpistasisLab/tpot
Commit Name: e513059dd85ee2d9a267c8197386eaf2b135f38a
Time: 2018-09-20
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_check_periodic_pipeline