f5d8d55fee654dc6f31a4bfbaeb867201a1ae60e,mlxtend/image/tests/test_extract_face_landmarks.py,,test_jpg,#,38

Before Change


    assert landmarks2.shape == (68, 2)

    if os.name == "nt":
        true_vals = np.array([[85, 111],
                              [84, 120],
                              [85, 130],
                              [87, 140],
                              [91, 148],
                              [98, 155],
                              [105, 160],
                              [113, 164],
                              [120, 165],
                              [126, 162]], dtype=np.int32)

    else:
        true_vals = np.array([[85, 110],
                              [85, 120],

After Change


    if os.name == "nt":
        // on windows, imageio parses jpgs sometimes differently so pixel values
        // maybe slightly different
        assert np.sum(np.abs(landmarks2[:10] - true_vals) > 2) == 0
    else:
        assert np.sum(np.abs(landmarks2[:10] - true_vals) > 0) == 0
        np.testing.assert_array_equal(landmarks2[:10], true_vals)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: rasbt/mlxtend
Commit Name: f5d8d55fee654dc6f31a4bfbaeb867201a1ae60e
Time: 2018-12-09
Author: 2880929+vmirly@users.noreply.github.com
File Name: mlxtend/image/tests/test_extract_face_landmarks.py
Class Name:
Method Name: test_jpg


Project Name: pandas-dev/pandas
Commit Name: ff628b17ccfcaf14ceefeb438aafa56d3849937c
Time: 2021-01-19
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/frame/test_ufunc.py
Class Name:
Method Name: test_binary_input_aligns_index


Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence