a0d70d5a13d771ba944b4cf2a1c32226eafa393b,nilearn/tests/test_numpy_conversions.py,,test_csv_to_array,#,236

Before Change



def test_csv_to_array():
    // Create a phony CSV file
    with tempfile.NamedTemporaryFile(suffix=".csv", mode="wt") as csv_file:
        csv_file.write("1.,2.,3.,4.,5.\n")
        csv_file.flush()
        assert_true(np.allclose(csv_to_array(csv_file.name),

After Change


    // Create a phony CSV file
    filename = tempfile.mktemp(suffix=".csv")
    try:
        with open(filename, mode = "wt") as fp:
            fp.write("1.,2.,3.,4.,5.\n")
            fp.flush()
    except:
        pass
    else:
        assert_true(np.allclose(csv_to_array(filename),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: nilearn/nilearn
Commit Name: a0d70d5a13d771ba944b4cf2a1c32226eafa393b
Time: 2015-11-04
Author: alexandre.abadie@inria.fr
File Name: nilearn/tests/test_numpy_conversions.py
Class Name:
Method Name: test_csv_to_array


Project Name: markovmodel/PyEMMA
Commit Name: 537b49b57f2a68da06eeee26f5b2d00493b1bd8c
Time: 2018-02-02
Author: m.scherer@fu-berlin.de
File Name: setup_util.py
Class Name:
Method Name: has_flag


Project Name: nipy/dipy
Commit Name: 99fcc31a804f09edc88af884c4d1e5f036b6f751
Time: 2018-02-15
Author: kumarashutosh.ee@gmail.com
File Name: dipy/io/tests/test_io_gradients.py
Class Name:
Method Name: test_read_bvals_bvecs


Project Name: bokeh/bokeh
Commit Name: beb173d604c9f975b7eed1c6e8e1152a3d4aab12
Time: 2017-04-25
Author: lcanavan@continuum.io
File Name: bokeh/io.py
Class Name:
Method Name: export