86afde76db80d9593627afa90b4c359de499c1e2,conftest.py,,pytest_collection_modifyitems,#Any#Any#,16

Before Change




def pytest_collection_modifyitems(config, items):
    if config.getoption("--runslow"):
        // --runslow given in cli: do not skip slow tests
        return
    skip_slow = pytest.mark.skip(reason="need --runslow option to run")

After Change




def pytest_collection_modifyitems(config, items):
    if not config.getoption("--runslow"):
        skip_slow = pytest.mark.skip(reason="need --runslow option to run")
        for item in items:
            if "slow" in item.keywords:
                item.add_marker(skip_slow)
    if not config.getoption("--rungpu"):
        skip_gpu = pytest.mark.skip(reason="need --rungpu option to run")
        for item in items:
            if "gpu" in item.keywords:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 86afde76db80d9593627afa90b4c359de499c1e2
Time: 2020-05-07
Author: 6176602+pyeres@users.noreply.github.com
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems


Project Name: aws/sagemaker-python-sdk
Commit Name: 96bfc2737ebd56dc39158522d92af64b7ed7c1be
Time: 2019-12-23
Author: 32335935+nadiaya@users.noreply.github.com
File Name: tests/conftest.py
Class Name:
Method Name: tf_full_version


Project Name: commonsense/conceptnet5
Commit Name: 7ef12abdea19f5d9c819e37df8e4c31e478cde3a
Time: 2019-09-03
Author: rspeer@luminoso.com
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems


Project Name: aws/sagemaker-python-sdk
Commit Name: dba0ef94d2968bca6959b89e282b8dbb982c17ea
Time: 2020-04-23
Author: chuyangdeng@gmail.com
File Name: tests/conftest.py
Class Name:
Method Name: ei_tf_full_version