14
0
forked from pool/python-mocket

Accepting request 977787 from home:pgajdos:python

- do not require python-mock for build
- added patches
  fix https://github.com/mindflayer/python-mocket/issues/178
  + python-mocket-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/977787
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=47
This commit is contained in:
Sebastian Wagner
2022-05-17 13:58:41 +00:00
committed by Git OBS Bridge
parent 48cacb46bf
commit 86c0462991
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
diff -upr mocket-3.10.5.orig/tests/main/test_http.py mocket-3.10.5/tests/main/test_http.py
--- mocket-3.10.5.orig/tests/main/test_http.py 2022-05-17 15:23:49.159143686 +0200
+++ mocket-3.10.5/tests/main/test_http.py 2022-05-17 15:23:49.163143712 +0200
@@ -10,7 +10,7 @@ from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen
-import mock
+from unittest import mock
import pytest
import requests