forked from pool/python-fixtures
* Document more changes since 3.0.0 * Mention extra in another place in README * Move testtools requirement to a "streams" extra * Stop using testtools.helpers.try_import * Fix MockPatchMultiple.DEFAULT * Fix YAML type confusion * Add support for Python 3.10 * Mark README as rST * setup.cfg: Replace dashes with underscores * Drop support for Python < 3.6, add 3.7 - 3.9 * Add possibility to reset the FakeLogger * Add missing APIs to FakeProcess, making it match Popen (LP #1373224) - Remove patch fixtures-pr36-py39.patch: * Included upstream. - Add patch handle-no-external-mock.patch: * Skip a testcase if mock is not available. - Bump required versions of pbr and testtools. - Correct URL. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fixtures?expand=0&rev=38
18 lines
565 B
Diff
18 lines
565 B
Diff
Index: fixtures-4.0.0/fixtures/tests/_fixtures/test_mockpatch.py
|
|
===================================================================
|
|
--- fixtures-4.0.0.orig/fixtures/tests/_fixtures/test_mockpatch.py
|
|
+++ fixtures-4.0.0/fixtures/tests/_fixtures/test_mockpatch.py
|
|
@@ -13,7 +13,11 @@
|
|
# under the License.
|
|
|
|
|
|
-import mock # Yes, we only test the rolling backport
|
|
+try:
|
|
+ import mock # Yes, we only test the rolling backport
|
|
+except ImportError:
|
|
+ import unittest
|
|
+ raise unittest.SkipTest("mock not available")
|
|
import testtools
|
|
|
|
from fixtures import (
|