File handle-no-external-mock.patch of Package python-fixtures
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 (