def generate_expected():
    print("Generating expected output for examples, please check the results!")
    for ex in EXAMPLES:
        stdout_filename = ('./tests/example_outputs/' + format_example_name(ex)
                           + '.out')
        stderr_filename = ('./tests/example_outputs/' + format_example_name(ex)
                           + '.err')
        if ((not os.path.isfile(stdout_filename) or
             not os.path.isfile(stderr_filename))):
            print("Running: %s" % ex)
            process = subprocess.Popen(ex,
                                       universal_newlines=True,
                                       stdout=subprocess.PIPE,
                                       stderr=subprocess.PIPE)
            process.wait()
            stdout = invariant_output(process.stdout.read())
            stderr = invariant_output(process.stderr.read())
            with open(stdout_filename, 'w') as f_handle:
                f_handle.write(stdout)
            with open(stderr_filename, 'w') as f_handle:
                f_handle.write(stderr)
Deprecated.  Use getStatusChangeTime instead.
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_examples.py/generate_expected--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/filepath.py/AbstractFilePath.getctime