File pip-run-suse-ring1-no-nbformat.patch of Package python-pip-run
Index: pip_run-16.1.0/tests/test_scripts.py
===================================================================
--- pip_run-16.1.0.orig/tests/test_scripts.py
+++ pip_run-16.1.0/tests/test_scripts.py
@@ -4,7 +4,6 @@ import sys
import textwrap
import jaraco.path
-import nbformat
import pytest
from pip_run import deps, scripts
@@ -110,6 +109,8 @@ class TestSourceDepsReader:
class TestNotebookDepsReader:
@pytest.fixture
def notebook_factory(self, tmpdir, request):
+ nbformat = pytest.importorskip("nbformat")
+
class Factory:
def __init__(self):
self.nb = nbformat.v4.new_notebook()