913aea3ed811614e5ecb59c5aeaa667209ab0535,tests/conftest.py,,pytest_itemcollected,#Any#,28

Before Change


    // so that pytest-spec will correctly parse the information.
    path = os.path.relpath(str(item.fspath))
    prefix = parent.__doc__ or getattr(parent, "__name__", parent.__class__.__name__)
    suffix = node.__doc__.strip() if node.__doc__ else node.__name__

    // Add parametrize or test generation id to distinguish it in output
    if item._genid:
        suffix += " ({})".format(item._genid)

After Change



    // Add parametrize or test generation id to distinguish it in output
    // TODO: this is broken with pytest 4.2 (no attribute _genid)
    if hasattr(item, "_genid") and item._genid:
        suffix += " ({})".format(item._genid)

    if prefix or suffix:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 913aea3ed811614e5ecb59c5aeaa667209ab0535
Time: 2019-01-31
Author: benjamin@bengfort.com
File Name: tests/conftest.py
Class Name:
Method Name: pytest_itemcollected


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: postProcess


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: validate