522148df7cc5010b4b593b014ea8879ce6c36a3a,lib/matplotlib/tests/test_backends_interactive.py,,_get_testable_interactive_backends,#,18

Before Change


            reason = "No $DISPLAY"
        elif any(importlib.util.find_spec(dep) is None for dep in deps):
            reason = "Missing dependency"
        backends.append(pytest.mark.skip(reason=reason)(backend) if reason
                        else backend)
    return backends

After Change


        elif any(importlib.util.find_spec(dep) is None for dep in deps):
            reason = "Missing dependency"
        if reason:
            backend = pytest.param(
                backend, marks=pytest.mark.skip(reason=reason))
        backends.append(backend)
    return backends

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 522148df7cc5010b4b593b014ea8879ce6c36a3a
Time: 2018-09-26
Author: dstansby@gmail.com
File Name: lib/matplotlib/tests/test_backends_interactive.py
Class Name:
Method Name: _get_testable_interactive_backends


Project Name: matplotlib/matplotlib
Commit Name: 6a9250388df6059fe3605958b70a2feb292ac118
Time: 2018-09-29
Author: jklymak@gmail.com
File Name: lib/matplotlib/tests/test_backends_interactive.py
Class Name:
Method Name: _get_testable_interactive_backends


Project Name: uber/pyro
Commit Name: 68eecb6463e1e9511bfeb813b5ff96bc96788176
Time: 2020-02-28
Author: fritzo@uber.com
File Name: pyro/nn/module.py
Class Name: PyroModule
Method Name: __setattr__