]> git.pld-linux.org Git - packages/python-genty.git/commitdiff
- added mock patch (don't require standalone mock backport under Python 3) auto/th/python-genty-1.3.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 13 Jan 2020 15:08:36 +0000 (16:08 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 13 Jan 2020 15:08:36 +0000 (16:08 +0100)
python-genty-mock.patch [new file with mode: 0644]

diff --git a/python-genty-mock.patch b/python-genty-mock.patch
new file mode 100644 (file)
index 0000000..a9039c1
--- /dev/null
@@ -0,0 +1,15 @@
+--- genty-1.3.2/test/test_genty.py.orig        2016-02-18 17:26:54.000000000 +0100
++++ genty-1.3.2/test/test_genty.py     2020-01-13 15:40:54.967183480 +0100
+@@ -3,7 +3,11 @@
+ from __future__ import unicode_literals
+ import functools
+ import inspect
+-from mock import patch
++try:
++    from mock import patch
++except ImportError:
++    from unittest.mock import patch
++
+ import six
+ from genty import genty, genty_args, genty_dataset, genty_repeat, genty_dataprovider
+ from genty.genty import REPLACE_FOR_PERIOD_CHAR
This page took 0.110438 seconds and 4 git commands to generate.