Matej Cepl
f08ec22a6a
- do not require mock for build nor runtime - added patches fix https://github.com/gabrielfalcao/sure/pull/161 + python-sure-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/974852 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sure?expand=0&rev=23
24 lines
432 B
Diff
24 lines
432 B
Diff
--- a/sure/core.py
|
|
+++ b/sure/core.py
|
|
@@ -21,7 +21,10 @@
|
|
try:
|
|
from mock import _CallList
|
|
except ImportError:
|
|
- from mock.mock import _CallList
|
|
+ try:
|
|
+ from mock.mock import _CallList
|
|
+ except ImportError:
|
|
+ from unittest.mock import _CallList
|
|
|
|
import inspect
|
|
from six import (
|
|
@@ -40,6 +43,7 @@ class Anything(object):
|
|
def __eq__(self, _):
|
|
return True
|
|
|
|
+
|
|
anything = Anything()
|
|
|
|
|
|
|