diff options
author | Jelle van der Waa | 2023-05-01 19:13:17 +0000 |
---|---|---|
committer | Jelle van der Waa | 2023-05-01 19:13:17 +0000 |
commit | 1a686d2d000399140677b757ea75fc8cb5be5281 (patch) | |
tree | c374e7c61db63200f5f47ed91e9e6941a1d1fdc0 /drop-python-mock-dependency.patch | |
parent | 4fa52a87b093fd40991c357bc9227c2e99bc21d9 (diff) | |
download | aur-1a686d2d000399140677b757ea75fc8cb5be5281.tar.gz |
drop python-mock depend
Diffstat (limited to 'drop-python-mock-dependency.patch')
-rw-r--r-- | drop-python-mock-dependency.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drop-python-mock-dependency.patch b/drop-python-mock-dependency.patch new file mode 100644 index 000000000000..12629751e54a --- /dev/null +++ b/drop-python-mock-dependency.patch @@ -0,0 +1,46 @@ +diff -aur yarg-0.1.9.old/requirements-test.txt yarg-0.1.9/requirements-test.txt +--- yarg-0.1.9.old/requirements-test.txt 2023-05-01 21:05:56.850103096 +0200 ++++ yarg-0.1.9/requirements-test.txt 2023-05-01 21:06:37.230760899 +0200 +@@ -1,3 +1,2 @@ + nose + coveralls +-mock +diff -aur yarg-0.1.9.old/tests/test_client.py yarg-0.1.9/tests/test_client.py +--- yarg-0.1.9.old/tests/test_client.py 2023-05-01 21:05:56.850103096 +0200 ++++ yarg-0.1.9/tests/test_client.py 2023-05-01 21:06:09.133639028 +0200 +@@ -1,7 +1,7 @@ + import os + import unittest + +-from mock import call, MagicMock, patch ++from unittest.mock import call, MagicMock, patch + + from yarg import get, HTTPError + +diff -aur yarg-0.1.9.old/tests/test_parse.py yarg-0.1.9/tests/test_parse.py +--- yarg-0.1.9.old/tests/test_parse.py 2023-05-01 21:05:56.850103096 +0200 ++++ yarg-0.1.9/tests/test_parse.py 2023-05-01 21:06:09.133639028 +0200 +@@ -2,7 +2,7 @@ + import os + import unittest + +-from mock import call, MagicMock, patch ++from unittest.mock import call, MagicMock, patch + + from yarg import newest_packages, latest_updated_packages, HTTPError + from yarg.parse import _get, Package +diff -aur yarg-0.1.9.old/tox.ini yarg-0.1.9/tox.ini +--- yarg-0.1.9.old/tox.ini 2023-05-01 21:05:56.850103096 +0200 ++++ yarg-0.1.9/tox.ini 2023-05-01 21:06:09.133639028 +0200 +@@ -1,10 +1,9 @@ + [tox] +-envlist = py26, py27, py33, py34, pypy, pypy3, docs, flake8 ++envlist = py26, py27, py33, py34, py38, pypy, pypy3, docs, flake8 + + [testenv] + deps = nose + requests +- mock + commands = nosetests + + [testenv:flake8] |