15
0
forked from pool/python-bindep

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bindep?expand=0&rev=18
This commit is contained in:
2025-06-17 07:58:53 +00:00
committed by Git OBS Bridge
commit e1562a4ade
8 changed files with 325 additions and 0 deletions

32
remove-mock.patch Normal file
View File

@@ -0,0 +1,32 @@
Index: bindep-2.11.0/bindep/tests/test_main.py
===================================================================
--- bindep-2.11.0.orig/bindep/tests/test_main.py
+++ bindep-2.11.0/bindep/tests/test_main.py
@@ -24,7 +24,10 @@ from fixtures import FakeLogger
from fixtures import Fixture
from fixtures import MonkeyPatch
from fixtures import TempDir
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
from testtools import TestCase
from bindep.__main__ import main
Index: bindep-2.11.0/bindep/tests/test_depends.py
===================================================================
--- bindep-2.11.0.orig/bindep/tests/test_depends.py
+++ bindep-2.11.0/bindep/tests/test_depends.py
@@ -23,7 +23,10 @@ from textwrap import dedent
import distro
import fixtures
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
import ometa.runtime
from testtools import ExpectedException
from testtools.matchers import Contains