ca2bcd1e6d7d8639e0b6b747146a9e8cb8307b9d,tests/codebase/test_python_execution_with_OO.py,,test_python_execution_with_OO,#,34

Before Change


    test_env = os.environ.copy()
    test_env["BOKEH_DOCS_MISSING_API_KEY_OK"] = "yes"

    proc = Popen(["python", "-OO", "-c", ";".join(imports), ""], stdout=PIPE, env=test_env)
    proc.communicate()
    proc.wait()

After Change


    test_env = os.environ.copy()
    test_env["BOKEH_DOCS_MISSING_API_KEY_OK"] = "yes"

    proc = Popen(["python", "-OO", "-"], stdout=PIPE, stdin=PIPE, env=test_env)
    proc.communicate("\n".join(imports).encode("utf-8"))
    proc.wait()

    if proc.returncode != 0:
        assert False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bokeh/bokeh
Commit Name: ca2bcd1e6d7d8639e0b6b747146a9e8cb8307b9d
Time: 2019-03-30
Author: mattpap@gmail.com
File Name: tests/codebase/test_python_execution_with_OO.py
Class Name:
Method Name: test_python_execution_with_OO


Project Name: NifTK/NiftyNet
Commit Name: 0a3c1aa4d67cb9c49f22a87bef180c07dfafec8a
Time: 2017-06-16
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: aa495c2ace9444aa5028f699ae62dddef45ab7d9
Time: 2017-06-15
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name: