fce6ae4fafe9b1e5a2b7f3287813ca76e4c92d33,tests/test_config/test_config_files.py,,test_load_config_file,#Any#Any#,29
Before Change
@pytest.mark.parametrize("ext, handler", HANDLER_BY_EXT.items())
def test_load_config_file(ext, handler):
with tempfile.NamedTemporaryFile("w+" + handler.mode, suffix=ext) as f:
handler.dump(data, f)
f.seek(0)
d = load_config_file(f.name)
assert d == data
After Change
@pytest.mark.parametrize("ext, handler", HANDLER_BY_EXT.items())
def test_load_config_file(ext, handler):
handle, f_name = tempfile.mkstemp(suffix=ext)
f = os.fdopen(handle, "w" + handler.mode)
handler.dump(data, f)
f.close()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: IDSIA/sacred
Commit Name: fce6ae4fafe9b1e5a2b7f3287813ca76e4c92d33
Time: 2015-06-23
Author: qwlouse@gmail.com
File Name: tests/test_config/test_config_files.py
Class Name:
Method Name: test_load_config_file
Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm
Project Name: pyannote/pyannote-audio
Commit Name: b0a78567606a3ff24437501fc83239181b9478b3
Time: 2019-02-28
Author: pavel.korshunov@idiap.ch
File Name: pyannote/audio/features/utils.py
Class Name:
Method Name: read_audio
Project Name: cve-search/cve-search
Commit Name: 31a1da52f8d2def65aedb9e1eefee8246e5e9e09
Time: 2016-10-18
Author: pieterjan.moreels@gmail.com
File Name: sbin/db_mgmt_cwe.py
Class Name:
Method Name: