- do not require python-mock for build
- added patches
fix 8cff1aac74
+ python-python-multipart-no-mock.patch
OBS-URL: https://build.opensuse.org/request/show/967738
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-multipart?expand=0&rev=4
18 lines
477 B
Diff
18 lines
477 B
Diff
diff --git a/multipart/tests/test_multipart.py b/multipart/tests/test_multipart.py
|
|
index 5769905..7913cd2 100644
|
|
--- a/multipart/tests/test_multipart.py
|
|
+++ b/multipart/tests/test_multipart.py
|
|
@@ -16,7 +16,10 @@
|
|
from io import BytesIO
|
|
from six import binary_type, text_type
|
|
|
|
-from mock import MagicMock, Mock, patch
|
|
+try:
|
|
+ from unittest.mock import MagicMock, Mock, patch
|
|
+except ImportError:
|
|
+ from mock import MagicMock, Mock, patch
|
|
|
|
from ..multipart import *
|
|
|
|
|