mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-vcs/git-pw: version bump, 2.2.3
Closes: https://bugs.gentoo.org/816129 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST git-pw-2.1.1.tar.gz 32489 BLAKE2B 516eb3b81c3798a455b7122a3b0ad9bf0d9722eb6f301ea58ed766cca94137f4da4eaf34a40ec7c5e108368aa6099f9401aba6d71d463913cd2b7fd9dc7aef09 SHA512 3cbf0670bf811d6b6ef0d4c5c7ad4321380d442c62fd15869758b26b4fc375c2d4bd2bdbf693a41d0cbe862bdef15fc02d04124a089f7786bd1b2e56f818e0c2
|
||||
DIST git-pw-2.2.3.tar.gz 33605 BLAKE2B 6f8b72b1ef8cda3f5dea568ad0e872d3c8f1795bf9889b76cd281bc19b303a903baa38a89036511b2d1496b258b37e843fcbc333f5a86735bcae6f3d22f3a320 SHA512 06a34e1cc3a7b32b44a6042abf17d00f5b648039ce091885bf19638457f3800f2daecbcd03ae9da2f48166bac53a2219735e251145302bcc98a9cd29fab7450f
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
From 08152c86d02c36c425047fa9220d6d5ac3fcda01 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Smith <matt@offtopica.uk>
|
||||
Date: Sun, 26 Sep 2021 19:55:40 +0100
|
||||
Subject: [PATCH] tests: Unset PAGER env when testing fallback
|
||||
|
||||
Prior to this commit, the test test_echo_via_pager_env_default will
|
||||
fail when $PAGER is set to /usr/bin/less (or anything other than
|
||||
"less"). Use unittest.mock to unset the environment variable during
|
||||
the test.
|
||||
---
|
||||
tests/test_utils.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tests/test_utils.py b/tests/test_utils.py
|
||||
index cf75a55..a0974f1 100644
|
||||
--- a/tests/test_utils.py
|
||||
+++ b/tests/test_utils.py
|
||||
@@ -75,6 +75,7 @@ def test_echo_via_pager_env_PAGER(mock_inner, mock_tabulate, mock_config):
|
||||
@mock.patch.object(utils, 'git_config', return_value=None)
|
||||
@mock.patch.object(utils, '_tabulate')
|
||||
@mock.patch.object(utils, '_echo_via_pager')
|
||||
+@mock.patch.dict(os.environ, {'PAGER': ''})
|
||||
def test_echo_via_pager_env_default(mock_inner, mock_tabulate, mock_config):
|
||||
utils.echo_via_pager('test', ('foo',), None)
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@@ -21,8 +21,6 @@ LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-test.patch" )
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/arrow-0.10[${PYTHON_USEDEP}]
|
||||
<dev-python/click-8.0[${PYTHON_USEDEP}]
|
||||
@@ -34,7 +32,7 @@ BDEPEND="
|
||||
dev-python/pbr[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
>=dev-python/mock-3.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pytest-6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-cov-2.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
Reference in New Issue
Block a user