ef9ba69b210f79ff72c1317a9b239d9a792d4070,memcnn/examples/tests/test_examples.py,,test_example_minimal,#,6

Before Change



def test_example_minimal():
    example_fname = os.path.join(os.path.dirname(memcnn.__file__), "examples", "minimal.py")
    ret_code = os.system(sys.executable + " " + example_fname)
    assert(ret_code == 0)

After Change




def test_example_minimal():
    example_fname = os.path.join(os.path.abspath(os.path.dirname(memcnn.__file__)), "examples", "minimal.py")
    p = sp.Popen([os.path.abspath(sys.executable), example_fname], stdout=sp.DEVNULL, stdin=sp.DEVNULL)
    p.communicate()
    assert(p.returncode == 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: silvandeleemput/memcnn
Commit Name: ef9ba69b210f79ff72c1317a9b239d9a792d4070
Time: 2019-07-10
Author: silvandeleemput@gmail.com
File Name: memcnn/examples/tests/test_examples.py
Class Name:
Method Name: test_example_minimal


Project Name: jakeret/tf_unet
Commit Name: dfb5016cefc3bad21ab900a1c8196c46d6bd2297
Time: 2017-12-29
Author: joel.akeret@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: mindsdb/mindsdb
Commit Name: aef9015979e220163385767345a1defeab68ab8f
Time: 2020-10-19
Author: wzzhz13@gmail.com
File Name: distributions/windows/install.py
Class Name:
Method Name:


Project Name: reinforceio/tensorforce
Commit Name: fea16a21b0381dbb09038da2d1a9a0dcea377a28
Time: 2017-03-07
Author: k@ifricke.com
File Name: tensorforce/examples/async_helper.py
Class Name:
Method Name: main