forked from pool/python-flaky
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
This commit is contained in:
11
remove_mock.patch
Normal file
11
remove_mock.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- 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
|
Reference in New Issue
Block a user