]> git.pld-linux.org Git - packages/python-genty.git/blob - python-genty-mock.patch
- added mock patch (don't require standalone mock backport under Python 3)
[packages/python-genty.git] / python-genty-mock.patch
1 --- genty-1.3.2/test/test_genty.py.orig 2016-02-18 17:26:54.000000000 +0100
2 +++ genty-1.3.2/test/test_genty.py      2020-01-13 15:40:54.967183480 +0100
3 @@ -3,7 +3,11 @@
4  from __future__ import unicode_literals
5  import functools
6  import inspect
7 -from mock import patch
8 +try:
9 +    from mock import patch
10 +except ImportError:
11 +    from unittest.mock import patch
12 +
13  import six
14  from genty import genty, genty_args, genty_dataset, genty_repeat, genty_dataprovider
15  from genty.genty import REPLACE_FOR_PERIOD_CHAR
This page took 0.159966 seconds and 3 git commands to generate.