17
0
Files
python-flake8-polyfill/python-flake8-polyfill-use-unittest-mock.patch
Steve Kowalik 3a120e97f6 Accepting request 894266 from home:pgajdos:python
- actually run the testsuite, use %pytest macro
- added patches
  fix use unittest.mock instead of mock
  + python-flake8-polyfill-use-unittest-mock.patch

OBS-URL: https://build.opensuse.org/request/show/894266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-polyfill?expand=0&rev=7
2021-05-19 10:20:06 +00:00

17 lines
484 B
Diff

Index: flake8-polyfill-1.0.2/tests/test_options.py
===================================================================
--- flake8-polyfill-1.0.2.orig/tests/test_options.py 2017-12-30 14:45:28.000000000 +0100
+++ flake8-polyfill-1.0.2/tests/test_options.py 2021-05-19 09:45:18.723426614 +0200
@@ -2,7 +2,10 @@
import optparse
import os
-import mock
+try:
+ import unittest.mock as mock
+except ImportError:
+ import mock
import pytest
from flake8_polyfill import options