forked from pool/python-kafka-python
Update patch correctly
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kafka-python?expand=0&rev=24
This commit is contained in:
parent
8e4d278cb4
commit
942cad42a5
@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 11 06:50:00 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Oct 12 02:26:13 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Add patch remove-mock.patch:
|
- Add patch remove-mock.patch:
|
||||||
* Remove use of mock.
|
* Remove use of mock.
|
||||||
|
@ -14,3 +14,19 @@ Index: kafka-python-2.0.2/test/test_consumer_integration.py
|
|||||||
import pytest
|
import pytest
|
||||||
from kafka.vendor.six.moves import range
|
from kafka.vendor.six.moves import range
|
||||||
|
|
||||||
|
Index: kafka-python-2.0.2/test/test_conn.py
|
||||||
|
===================================================================
|
||||||
|
--- kafka-python-2.0.2.orig/test/test_conn.py
|
||||||
|
+++ kafka-python-2.0.2/test/test_conn.py
|
||||||
|
@@ -4,7 +4,10 @@ from __future__ import absolute_import
|
||||||
|
from errno import EALREADY, EINPROGRESS, EISCONN, ECONNRESET
|
||||||
|
import socket
|
||||||
|
|
||||||
|
-import mock
|
||||||
|
+try:
|
||||||
|
+ from unittest import mock
|
||||||
|
+except ImportError:
|
||||||
|
+ import mock
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
from kafka.conn import BrokerConnection, ConnectionStates, collect_hosts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user