python-flaky/remove_mock.patch
Matej Cepl 0a27e432dc Accepting request 855334 from home:mcepl:branches:devel:tools:scm
- Add remove_mock.patch to remove dependency on the external mock package.

- Add remove_nose.patch to remove dependency on nose.

OBS-URL: https://build.opensuse.org/request/show/855334
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flaky?expand=0&rev=15
2020-12-12 12:11:57 +00:00

12 lines
338 B
Diff

--- a/test/test_pytest/test_flaky_pytest_plugin.py
+++ b/test/test_pytest/test_flaky_pytest_plugin.py
@@ -2,7 +2,7 @@
from __future__ import unicode_literals
from io import StringIO
-from mock import Mock, patch
+from unittest.mock import Mock, patch
# pylint:disable=import-error
import pytest
from _pytest.runner import CallInfo