From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01A901382C5 for ; Fri, 19 Mar 2021 09:56:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31D21E090F; Fri, 19 Mar 2021 09:56:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF93BE090F for ; Fri, 19 Mar 2021 09:56:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2729B340D79 for ; Fri, 19 Mar 2021 09:56:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 89CEB5B4 for ; Fri, 19 Mar 2021 09:56:12 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1616147720.5a4382dcce9984d1bfae207b20848cee79c84936.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cbor2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cbor2/cbor2-5.2.0.ebuild X-VCS-Directories: dev-python/cbor2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5a4382dcce9984d1bfae207b20848cee79c84936 X-VCS-Branch: master Date: Fri, 19 Mar 2021 09:56:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dc88dc12-89ec-48f6-adc5-01b724f52447 X-Archives-Hash: cf25eda5df9661d9d6cdf677a5e192ad commit: 5a4382dcce9984d1bfae207b20848cee79c84936 Author: Michał Górny gentoo org> AuthorDate: Fri Mar 19 09:55:20 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Mar 19 09:55:20 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4382dc dev-python/cbor2: Skip failing tests on 32-bit targets Closes: https://bugs.gentoo.org/755413 Signed-off-by: Michał Górny gentoo.org> dev-python/cbor2/cbor2-5.2.0.ebuild | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/dev-python/cbor2/cbor2-5.2.0.ebuild b/dev-python/cbor2/cbor2-5.2.0.ebuild index a423f3fda5a..2c4aa4f6195 100644 --- a/dev-python/cbor2/cbor2-5.2.0.ebuild +++ b/dev-python/cbor2/cbor2-5.2.0.ebuild @@ -2,8 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) -DISTUTILS_USE_SETUPTOOLS="bdepend" +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 @@ -11,23 +10,13 @@ DESCRIPTION="Pure Python CBOR (de)serializer with extensive tag support" HOMEPAGE="https://github.com/agronholm/cbor2 https://pypi.org/project/cbor2/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -IUSE="test" -RESTRICT="!test? ( test )" - LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~x86" -BDEPEND=" - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -RDEPEND="${DEPEND}" +distutils_enable_tests pytest python_prepare_all() { - # remove pytest-cov dep sed -e "s/pytest-cov//" \ -e "s/--cov //" \ @@ -36,4 +25,16 @@ python_prepare_all() { distutils-r1_python_prepare_all } -distutils_enable_tests pytest +python_test() { + local deselect=() + + if use arm || use x86; then + # https://github.com/agronholm/cbor2/issues/99 + deselect+=( + tests/test_decoder.py::test_huge_truncated_bytes + tests/test_decoder.py::test_huge_truncated_string + ) + fi + + epytest ${deselect[@]/#/--deselect } +}