14
0

Accepting request 974842 from home:pgajdos:python

- added patches
  fix https://github.com/python-smpplib/python-smpplib/issues/200
  + python-smpplib-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/974842
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smpplib?expand=0&rev=8
This commit is contained in:
2022-05-04 09:32:08 +00:00
committed by Git OBS Bridge
parent 2ac0704e28
commit 68d27ac44e
3 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
diff -upr python-smpplib-2.2.1.orig/smpplib/tests/test_client.py python-smpplib-2.2.1/smpplib/tests/test_client.py
--- python-smpplib-2.2.1.orig/smpplib/tests/test_client.py 2022-05-04 09:38:34.127959320 +0200
+++ python-smpplib-2.2.1/smpplib/tests/test_client.py 2022-05-04 09:38:34.147959444 +0200
@@ -1,6 +1,6 @@
import warnings
import pytest
-from mock import Mock, call
+from unittest.mock import Mock, call
from smpplib.client import Client
from smpplib.smpp import make_pdu
diff -upr python-smpplib-2.2.1.orig/smpplib/tests/test_gsm.py python-smpplib-2.2.1/smpplib/tests/test_gsm.py
--- python-smpplib-2.2.1.orig/smpplib/tests/test_gsm.py 2022-05-04 09:38:34.127959320 +0200
+++ python-smpplib-2.2.1/smpplib/tests/test_gsm.py 2022-05-04 09:38:34.147959444 +0200
@@ -1,6 +1,6 @@
# -*- coding: utf8 -*-
-import mock
+from unittest import mock
from pytest import mark, raises
from smpplib import consts