From patchwork Thu Jan 3 21:34:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 653 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BB71316A0B; Thu, 3 Jan 2019 21:35:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id 70AFD16A07 for ; Thu, 3 Jan 2019 21:35:30 +0000 (GMT) Received: from localhost ([127.0.0.1]:58009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAeH-0005yZ-Uu for patchwork@mira.cbaines.net; Thu, 03 Jan 2019 16:35:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAdw-0005fG-GG for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAds-00049Y-Po for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAds-00049I-87 for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfAds-0000vF-3C for guix-patches@gnu.org; Thu, 03 Jan 2019 16:35:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33759] [PATCH v2 4/5] gnu: python-futures: Enable tests. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jan 2019 21:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33759@debbugs.gnu.org Received: via spool by 33759-submit@debbugs.gnu.org id=B33759.15465512973499 (code B ref 33759); Thu, 03 Jan 2019 21:35:04 +0000 Received: (at 33759) by debbugs.gnu.org; 3 Jan 2019 21:34:57 +0000 Received: from localhost ([127.0.0.1]:46020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdk-0000uI-Kk for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:56 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:56810 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAdh-0000tX-TX for 33759@debbugs.gnu.org; Thu, 03 Jan 2019 16:34:55 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 411CF16A0D for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:53 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 8beda8c9 for <33759@debbugs.gnu.org>; Thu, 3 Jan 2019 21:34:52 +0000 (UTC) From: Christopher Baines Date: Thu, 3 Jan 2019 21:34:51 +0000 Message-Id: <20190103213452.1829-4-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103213452.1829-1-mail@cbaines.net> References: <20181215121700.11320-1-mail@cbaines.net> <20190103213452.1829-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Re-enable the tests, as the python-2 package now has the support directory. Also, switch to running the tests via the test_futures.py script to avoid errors like: AttributeError: 'AsCompletedTests' object has no attribute 'executor' * gnu/packages/python.scm (python2-futures)[arguments]: Run the test_futures.py script to run the tests. --- gnu/packages/python.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 550643adb8..54bc1d4d02 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7918,11 +7918,14 @@ otherwise matches 3.2’s API.") (base32 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y")))) (build-system python-build-system) - (arguments `(#:python ,python-2 - ;; FIXME: Python 2.7.14 moved the test.support library, - ;; but our package has not yet been adjusted. Enable - ;; tests when the python2 package has been fixed. - #:tests? #f)) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "python" "test_futures.py") + #t))))) (home-page "https://github.com/agronholm/pythonfutures") (synopsis "Backport of the concurrent.futures package from Python 3.2")