public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/clang-python/files/9999/, dev-python/clang-python/
@ 2018-09-19 20:22 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2018-09-19 20:22 UTC (permalink / raw
  To: gentoo-commits

commit:     9abf52f39073b3945fb8c83ea8f27dc3edcf23a0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 19 17:22:43 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 19 20:16:36 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9abf52f3

dev-python/clang-python: Patch completion test failures

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/clang-python/clang-python-7.0.0.ebuild  |  6 ++++
 .../clang-python/clang-python-7.0.9999.ebuild      |  6 ++++
 dev-python/clang-python/clang-python-9999.ebuild   |  6 ++++
 ...-python-tests-Update-test_code_completion.patch | 33 ++++++++++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/dev-python/clang-python/clang-python-7.0.0.ebuild b/dev-python/clang-python/clang-python-7.0.0.ebuild
index 5d6eaf45c6c..6587ca010e1 100644
--- a/dev-python/clang-python/clang-python-7.0.0.ebuild
+++ b/dev-python/clang-python/clang-python-7.0.0.ebuild
@@ -29,6 +29,12 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${MY_P}/bindings/python
 
+PATCHES=(
+	# update completion test results due to completion changes
+	# https://reviews.llvm.org/D50171
+	"${FILESDIR}"/9999/0001-python-tests-Update-test_code_completion.patch
+)
+
 src_unpack() {
 	einfo "Unpacking parts of ${MY_P}.tar.xz ..."
 	tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die

diff --git a/dev-python/clang-python/clang-python-7.0.9999.ebuild b/dev-python/clang-python/clang-python-7.0.9999.ebuild
index d0d8cf54084..56917d10ff1 100644
--- a/dev-python/clang-python/clang-python-7.0.9999.ebuild
+++ b/dev-python/clang-python/clang-python-7.0.9999.ebuild
@@ -31,6 +31,12 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${P}/bindings/python
 
+PATCHES=(
+	# update completion test results due to completion changes
+	# https://reviews.llvm.org/D50171
+	"${FILESDIR}"/9999/0001-python-tests-Update-test_code_completion.patch
+)
+
 src_unpack() {
 	git-r3_fetch
 	git-r3_checkout '' '' '' bindings/python

diff --git a/dev-python/clang-python/clang-python-9999.ebuild b/dev-python/clang-python/clang-python-9999.ebuild
index cf488945799..b3138a01e17 100644
--- a/dev-python/clang-python/clang-python-9999.ebuild
+++ b/dev-python/clang-python/clang-python-9999.ebuild
@@ -30,6 +30,12 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${P}/bindings/python
 
+PATCHES=(
+	# update completion test results due to completion changes
+	# https://reviews.llvm.org/D50171
+	"${FILESDIR}"/9999/0001-python-tests-Update-test_code_completion.patch
+)
+
 src_unpack() {
 	git-r3_fetch
 	git-r3_checkout '' '' '' bindings/python

diff --git a/dev-python/clang-python/files/9999/0001-python-tests-Update-test_code_completion.patch b/dev-python/clang-python/files/9999/0001-python-tests-Update-test_code_completion.patch
new file mode 100644
index 00000000000..824da55ca41
--- /dev/null
+++ b/dev-python/clang-python/files/9999/0001-python-tests-Update-test_code_completion.patch
@@ -0,0 +1,33 @@
+From c083c4bbe436bb0db520998e035ec384dd87e0ad Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Thu, 2 Aug 2018 10:25:10 +0200
+Subject: [PATCH] [python] [tests] Update test_code_completion
+
+Update expected completions to match output generated by clang-7.0.
+---
+ bindings/python/tests/cindex/test_code_completion.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/bindings/python/tests/cindex/test_code_completion.py b/bindings/python/tests/cindex/test_code_completion.py
+index a56bb304cd..efc7912c91 100644
+--- a/tests/cindex/test_code_completion.py
++++ b/tests/cindex/test_code_completion.py
+@@ -61,11 +61,11 @@ void f(P x, Q y) {
+         cr = tu.codeComplete('fake.cpp', 12, 5, unsaved_files=files)
+ 
+         expected = [
+-          "{'const', TypedText} || Priority: 40 || Availability: Available || Brief comment: None",
+-          "{'volatile', TypedText} || Priority: 40 || Availability: Available || Brief comment: None",
++          "{'const', TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
++          "{'volatile', TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
+           "{'operator', TypedText} || Priority: 40 || Availability: Available || Brief comment: None",
+-          "{'P', TypedText} | {'::', Text} || Priority: 75 || Availability: Available || Brief comment: None",
+-          "{'Q', TypedText} | {'::', Text} || Priority: 75 || Availability: Available || Brief comment: None"
++          "{'P', TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
++          "{'Q', TypedText} || Priority: 50 || Availability: Available || Brief comment: None"
+         ]
+         self.check_completion_results(cr, expected)
+ 
+-- 
+2.19.0
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-19 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-19 20:22 [gentoo-commits] repo/gentoo:master commit in: dev-python/clang-python/files/9999/, dev-python/clang-python/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox