summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-02-27 10:24:38 +0000
committerMarek Szuba <marecki@gentoo.org>2023-02-27 12:45:00 +0000
commitb596666d58e2d9ff7397783f18be11efc5fa1ad7 (patch)
tree69fb866b15ff06822606f660d628937dd393c951 /dev-python/ansible-pygments
parentapp-office/sc-im: add 0.8.3 (diff)
downloadgentoo-b596666d58e2d9ff7397783f18be11efc5fa1ad7.tar.gz
gentoo-b596666d58e2d9ff7397783f18be11efc5fa1ad7.tar.bz2
gentoo-b596666d58e2d9ff7397783f18be11efc5fa1ad7.zip
dev-python/ansible-pygments: patch tests to support current Pygments
Revision bump because of an RDEPEND change required to match the expected test output, straight to stable because <dev-python/pygments-2.14 got dropped from the tree almost a month ago. Closes: https://bugs.gentoo.org/892061 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/ansible-pygments')
-rw-r--r--dev-python/ansible-pygments/ansible-pygments-0.1.1-r1.ebuild (renamed from dev-python/ansible-pygments/ansible-pygments-0.1.1.ebuild)8
-rw-r--r--dev-python/ansible-pygments/files/ansible-pygments-0.1.1-tests_pygments2_14.patch75
2 files changed, 81 insertions, 2 deletions
diff --git a/dev-python/ansible-pygments/ansible-pygments-0.1.1.ebuild b/dev-python/ansible-pygments/ansible-pygments-0.1.1-r1.ebuild
index 0f4d366bc7b9..77088a1a54f2 100644
--- a/dev-python/ansible-pygments/ansible-pygments-0.1.1.ebuild
+++ b/dev-python/ansible-pygments/ansible-pygments-0.1.1-r1.ebuild
@@ -16,7 +16,11 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~riscv"
-# 2.11.0+ needed in order for tests to pass
-RDEPEND=">=dev-python/pygments-2.11.0[${PYTHON_USEDEP}]"
+# 2.14.0+ needed in order for tests to pass
+RDEPEND=">=dev-python/pygments-2.14.0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.1.1-tests_pygments2_14.patch
+)
distutils_enable_tests pytest
diff --git a/dev-python/ansible-pygments/files/ansible-pygments-0.1.1-tests_pygments2_14.patch b/dev-python/ansible-pygments/files/ansible-pygments-0.1.1-tests_pygments2_14.patch
new file mode 100644
index 000000000000..d58a13256ac5
--- /dev/null
+++ b/dev-python/ansible-pygments/files/ansible-pygments-0.1.1-tests_pygments2_14.patch
@@ -0,0 +1,75 @@
+Backported upstream commit 0ddab3516217ac2067b6e980f5b2a6b2ac1be3fa
+
+--- a/tests/lexer_test.py
++++ b/tests/lexer_test.py
+@@ -86,41 +86,41 @@ def test_ansible_output_lexer():
+
+ <span class="k">TASK</span> <span class="p">[</span><span class="l">paused</span><span class="p">]</span> <span class="nv">************************************************************************************************************************************</span>
+ <span class="w">Sunday 11 November 2018 20:16:48 +0100 (0:00:00.041) 0:07:59.637 *******</span>
+-<span class="gd">--- before</span><span class="w"></span>
+-<span class="gi">+++ after</span><span class="w"></span>
+-<span class="gu">@@ -1,5 +1,5 @@</span><span class="w"></span>
+-<span class="w"> </span>{<span class="w"></span>
+-<span class="gd">- &quot;exists&quot;: false,</span><span class="w"></span>
+-<span class="gd">- &quot;paused&quot;: false,</span><span class="w"></span>
+-<span class="gd">- &quot;running&quot;: false</span><span class="w"></span>
+-<span class="gi">+ &quot;exists&quot;: true,</span><span class="w"></span>
+-<span class="gi">+ &quot;paused&quot;: true,</span><span class="w"></span>
+-<span class="gi">+ &quot;running&quot;: true</span><span class="w"></span>
+-<span class="w"> </span>}<span class="w"></span>
++<span class="gd">--- before</span>
++<span class="gi">+++ after</span>
++<span class="gu">@@ -1,5 +1,5 @@</span>
++<span class="w"> </span>{
++<span class="gd">- &quot;exists&quot;: false,</span>
++<span class="gd">- &quot;paused&quot;: false,</span>
++<span class="gd">- &quot;running&quot;: false</span>
++<span class="gi">+ &quot;exists&quot;: true,</span>
++<span class="gi">+ &quot;paused&quot;: true,</span>
++<span class="gi">+ &quot;running&quot;: true</span>
++<span class="w"> </span>}
+ <span class="w">\ No newline at end of file</span>
+
+ <span class="k">changed</span><span class="p">:</span> <span class="p">[</span><span class="nv">localhost</span><span class="p">]</span>
+
+ <span class="k">TASK</span> <span class="p">[</span><span class="l">volumes (more volumes)</span><span class="p">]</span> <span class="nv">********************************************************************************************************************</span>
+ <span class="w">Sunday 11 November 2018 20:19:25 +0100 (0:00:00.607) 0:10:36.974 *******</span>
+-<span class="gd">--- before</span><span class="w"></span>
+-<span class="gi">+++ after</span><span class="w"></span>
+-<span class="gu">@@ -1,11 +1,11 @@</span><span class="w"></span>
+-<span class="w"> </span>{<span class="w"></span>
+-<span class="w"> </span> &quot;expected_binds&quot;: [<span class="w"></span>
+-<span class="gd">- &quot;/tmp:/tmp:rw&quot;,</span><span class="w"></span>
+-<span class="gd">- &quot;/:/whatever:rw,z&quot;</span><span class="w"></span>
+-<span class="gi">+ &quot;/tmp:/somewhereelse:ro,Z&quot;,</span><span class="w"></span>
+-<span class="gi">+ &quot;/tmp:/tmp:rw&quot;</span><span class="w"></span>
+-<span class="w"> </span> ],<span class="w"></span>
+-<span class="w"> </span> &quot;expected_volumes&quot;: {<span class="w"></span>
+-<span class="gd">- &quot;/tmp&quot;: {},</span><span class="w"></span>
+-<span class="gd">- &quot;/whatever&quot;: {}</span><span class="w"></span>
+-<span class="gi">+ &quot;/somewhereelse&quot;: {},</span><span class="w"></span>
+-<span class="gi">+ &quot;/tmp&quot;: {}</span><span class="w"></span>
+-<span class="w"> </span> },<span class="w"></span>
+-<span class="w"> </span> &quot;running&quot;: true<span class="w"></span>
+-<span class="w"> </span>}<span class="w"></span>
++<span class="gd">--- before</span>
++<span class="gi">+++ after</span>
++<span class="gu">@@ -1,11 +1,11 @@</span>
++<span class="w"> </span>{
++<span class="w"> </span> &quot;expected_binds&quot;: [
++<span class="gd">- &quot;/tmp:/tmp:rw&quot;,</span>
++<span class="gd">- &quot;/:/whatever:rw,z&quot;</span>
++<span class="gi">+ &quot;/tmp:/somewhereelse:ro,Z&quot;,</span>
++<span class="gi">+ &quot;/tmp:/tmp:rw&quot;</span>
++<span class="w"> </span> ],
++<span class="w"> </span> &quot;expected_volumes&quot;: {
++<span class="gd">- &quot;/tmp&quot;: {},</span>
++<span class="gd">- &quot;/whatever&quot;: {}</span>
++<span class="gi">+ &quot;/somewhereelse&quot;: {},</span>
++<span class="gi">+ &quot;/tmp&quot;: {}</span>
++<span class="w"> </span> },
++<span class="w"> </span> &quot;running&quot;: true
++<span class="w"> </span>}
+ <span class="w">\ No newline at end of file</span>
+
+ <span class="k">changed</span><span class="p">:</span> <span class="p">[</span><span class="nv">localhost</span><span class="p">]</span>