14
0
Files
python-pip-run/pip-run-suse-ring1-no-nbformat.patch
Matej Cepl 14c4f7bbfd Accepting request 993266 from home:bnavigator:setuptools63
- Add pip-run-suse-ring1-no-nbformat.patch for removal of nbformat
  from Ring1 (pip-run will be in Ring1 for setuptools:test)

OBS-URL: https://build.opensuse.org/request/show/993266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=3
2022-08-05 13:47:49 +00:00

22 lines
646 B
Diff

Index: pip-run-8.8.1/pip_run/tests/test_scripts.py
===================================================================
--- pip-run-8.8.1.orig/pip_run/tests/test_scripts.py
+++ pip-run-8.8.1/pip_run/tests/test_scripts.py
@@ -4,7 +4,6 @@ import sys
import subprocess
import pytest
-import nbformat
from pip_run import scripts
@@ -85,6 +84,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()