forked from pool/python-pip-run
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
This commit is contained in:
21
pip-run-suse-ring1-no-nbformat.patch
Normal file
21
pip-run-suse-ring1-no-nbformat.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
Reference in New Issue
Block a user