c328be963a9af7c1f99588d5be374130d698cd58,tests/test_utils.py,,test_download_file,#,36

Before Change


def test_download_file(tmpdir):
    with requests_mock.mock() as m:
        m.get(requests_mock.ANY, text="")
        path = os.path.join(tmpdir, "somefilepath")
        utils.download_file("https://someurl", path)
        assert os.path.exists(path)

After Change


    with requests_mock.mock() as m:
        m.get(requests_mock.ANY, text="")
        // convert to string to make python<3.6 happy
        path = str(tmpdir.join("somefilepath"))
        utils.download_file("https://someurl", path)
        assert os.path.exists(path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: uuazed/numerapi
Commit Name: c328be963a9af7c1f99588d5be374130d698cd58
Time: 2018-01-06
Author: uuazed@gmail.com
File Name: tests/test_utils.py
Class Name:
Method Name: test_download_file


Project Name: pyinstaller/pyinstaller
Commit Name: e4ab403286335db036fbfc1d727ebe8b70c15e23
Time: 2018-08-18
Author: bjones@ece.msstate.edu
File Name: tests/unit/test_modulegraph/test_setuptools_nspkg.py
Class Name: TestPythonBehaviour
Method Name: importModule


Project Name: pyinstaller/pyinstaller
Commit Name: 80b32b0b1b992be9c48baf3fb718443148981007
Time: 2018-08-21
Author: bjones@ece.msstate.edu
File Name: tests/functional/test_hooks/test_django.py
Class Name:
Method Name: test_django