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 329E1138350 for ; Fri, 17 Jan 2020 18:35:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8880BE0880; Fri, 17 Jan 2020 18:35:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 64B08E0880 for ; Fri, 17 Jan 2020 18:35:56 +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 2F2C634E150 for ; Fri, 17 Jan 2020 18:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E8D9AB for ; Fri, 17 Jan 2020 18:35:53 +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: <1579286149.3caee498dc04ed6f499945d7f390b5820c2ce6ac.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypy3/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pypy3/pypy3-7.3.0.ebuild X-VCS-Directories: dev-python/pypy3/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3caee498dc04ed6f499945d7f390b5820c2ce6ac X-VCS-Branch: master Date: Fri, 17 Jan 2020 18:35:53 +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: 1fb2b289-4783-4bc5-815c-39cc0a431d80 X-Archives-Hash: 63845d8f32d7197b84cbfbb60d2ed6e1 commit: 3caee498dc04ed6f499945d7f390b5820c2ce6ac Author: Michał Górny gentoo org> AuthorDate: Fri Jan 17 18:23:05 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jan 17 18:35:49 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3caee498 dev-python/pypy3: Get tests to pass Signed-off-by: Michał Górny gentoo.org> dev-python/pypy3/pypy3-7.3.0.ebuild | 61 +++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/dev-python/pypy3/pypy3-7.3.0.ebuild b/dev-python/pypy3/pypy3-7.3.0.ebuild index d584b9c26c7..731160f9b9e 100644 --- a/dev-python/pypy3/pypy3-7.3.0.ebuild +++ b/dev-python/pypy3/pypy3-7.3.0.ebuild @@ -35,7 +35,10 @@ RDEPEND=" ) ! /dev/null || die + # tests are copied from cpython and apparently not adjusted to pypy3 + # or marked XFAIL + sed -i -e 's:test_runeval_step:_&:' \ + lib-python/3/test/test_bdb.py || die + sed -i -e 's:test_set_nomemory:_&:' \ + -e '/class PyMemDebugTests/i@unittest.skip("Broken on pypy3")' \ + lib-python/3/test/test_capi.py || die + sed -i -e 's:test_crashing_decode_handler:_&:' \ + lib-python/3/test/test_codeccallbacks.py || die + sed -i -e 's:test_unicode:_&:' \ + lib-python/3/test/test_dbm_gnu.py || die + sed -i -e 's:test_jumpy:_&:' \ + lib-python/3/test/test_dis.py || die + sed -i -e 's:test_generator_doesnt_retain_old_exc:_&:' \ + -e 's:test_generator_finalizing_and_exc_info:_&:' \ + -e 's:test_generator_leaking:_&:' \ + lib-python/3/test/test_exceptions.py || die + sed -i -e 's:test_locale:_&:' \ + lib-python/3/test/test_format.py || die + sed -i -e 's:test_ast_line_numbers:_&:' \ + -e 's:test_backslashes_in_string_part:_&:' \ + lib-python/3/test/test_fstring.py || die + sed -i -e 's:test_decompressor_bug_28275:_&:' \ + lib-python/3/test/test_lzma.py || die + sed -i -e 's:test_listdir_bytes_like:_&:' \ + -e 's:test_putenv:_&:' \ + lib-python/3/test/test_posix.py || die + sed -i -e 's:test_auto_history:_&:' \ + -e 's:test_history_size:_&:' \ + lib-python/3/test/test_readline.py || die + sed -i -e 's:CheckDMLDoesNotAutoCommitBefore:_&:' \ + -e 's:CheckImmediateTransactionalDDL:_&:' \ + -e 's:CheckTransactionalDDL:_&:' \ + lib-python/3/sqlite3/test/transactions.py || die + sed -i -e 's:test_pha_optional:_&:' \ + -e 's:test_pha_required:_&:' \ + lib-python/3/test/test_ssl.py || die + sed -i -e 's:test_eval_bytes_invalid_escape:_&:' \ + -e 's:test_eval_str_invalid_escape:_&:' \ + lib-python/3/test/test_string_literals.py || die + # the first one's broken by sandbox, the second by our env + sed -i -e 's:test_empty_env:_&:' \ + -e 's:test_executable:_&:' \ + lib-python/3/test/test_subprocess.py || die + sed -i -e 's:test_jump_out_of_async_for_block:_&:' \ + -e 's:test_jump_over_async_for_block_before_else:_&:' \ + -e 's:test_no_jump_.*wards_into_async_for_block:_&:' \ + -e 's:test_no_jump_into_async_for_block_before_else:_&:' \ + -e 's:test_no_jump_from_yield:_&:' \ + lib-python/3/test/test_sys_settrace.py || die + sed -i -e 's:test_circular_imports:_&:' \ + lib-python/3/test/test_threaded_import.py || die + eapply_user } @@ -113,10 +169,11 @@ src_compile() { src_test() { # (unset) local -x PYTHONDONTWRITEBYTECODE= + local -x COLUMNS=80 # Test runner requires Python 2 too. However, it spawns PyPy3 # internally so that we end up testing the correct interpreter. - "${PYTHON}" ./pypy/test_all.py --pypy=./pypy3-c -vv lib-python || die + "${EPYTHON}" ./pypy/test_all.py --pypy=./pypy3-c -vv lib-python || die } src_install() {