9e608febee0219236d67e905874a27cba72e9c55,tests/utils_tests/image_tests/test_write_image.py,TestWriteImage,test_write_image,#TestWriteImage#,31

Before Change


        self.img = np.random.randint(0, 255, size=shape).astype(self.dtype)

    def test_write_image(self):
        write_image(self.img, self.path)

        img = Image.open(self.path)

        W, H = img.size

After Change


        self.img = np.random.randint(0, 255, size=shape).astype(self.dtype)

    def test_write_image(self):
        if self.file_obj:
            write_image(self.img, self.file, format=self.format)
        else:
            write_image(self.img, self.file)
        img = Image.open(self.file)

        W, H = img.size
        self.assertEqual((H, W), self.size)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: 9e608febee0219236d67e905874a27cba72e9c55
Time: 2019-03-07
Author: Hakuyume@users.noreply.github.com
File Name: tests/utils_tests/image_tests/test_write_image.py
Class Name: TestWriteImage
Method Name: test_write_image


Project Name: chainer/chainercv
Commit Name: b7b5cbc9d4b44b360dedbddb83db32ff3ca9f6f4
Time: 2019-02-02
Author: yuyuniitani@gmail.com
File Name: tests/utils_tests/image_tests/test_read_image.py
Class Name: TestReadImageDifferentBackends
Method Name: setUp


Project Name: chainer/chainercv
Commit Name: b7b5cbc9d4b44b360dedbddb83db32ff3ca9f6f4
Time: 2019-02-02
Author: yuyuniitani@gmail.com
File Name: tests/utils_tests/image_tests/test_read_image.py
Class Name: TestReadImage
Method Name: setUp


Project Name: chainer/chainercv
Commit Name: 9e608febee0219236d67e905874a27cba72e9c55
Time: 2019-03-07
Author: Hakuyume@users.noreply.github.com
File Name: tests/utils_tests/image_tests/test_write_image.py
Class Name: TestWriteImage
Method Name: test_write_image