2599f644bd4c5e637a5d3777f523d3e53ef662a9,hyperspy/tests/model/test_model.py,TestModel1D,test_notebook_interactions,#TestModel1D#,313
Before Change
import ipywidgets
except:
raise SkipTest("ipywidgets not installed")
if LooseVersion(ipywidgets.__version__) < LooseVersion("5.0"):
raise SkipTest("ipywigets > 5.0 required but %s installed" %
ipywidgets.__version__)
from IPython import get_ipython
ip = get_ipython()
if ip is None or not getattr(ip, "kernel", None):
raise SkipTest("Not attached to notebook")
After Change
def test_notebook_interactions(self):
ipywidgets = pytest.importorskip("ipywidgets", minversion="5.0")
ipython = pytest.importorskip("IPython")
from IPython import get_ipython
ip = get_ipython()
if ip is None or not getattr(ip, "kernel", None):
pytest.xfail("Not attached to notebook")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: hyperspy/hyperspy
Commit Name: 2599f644bd4c5e637a5d3777f523d3e53ef662a9
Time: 2017-01-28
Author: frandelapena@gmail.com
File Name: hyperspy/tests/model/test_model.py
Class Name: TestModel1D
Method Name: test_notebook_interactions
Project Name: hyperspy/hyperspy
Commit Name: 730749c073c47a65be275ba6e5c277848180476f
Time: 2017-01-31
Author: frandelapena@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestSmoothing
Method Name: test_lowess
Project Name: hyperspy/hyperspy
Commit Name: 2599f644bd4c5e637a5d3777f523d3e53ef662a9
Time: 2017-01-28
Author: frandelapena@gmail.com
File Name: hyperspy/tests/model/test_model.py
Class Name: TestModelFitBinned
Method Name: test_fit_bounded_leastsq