From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: pytest plugins Date: Sun, 10 Apr 2016 18:19:38 +1000 Message-ID: <570A0C9A.6030802@uq.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apAb2-00061y-Cu for guix-devel@gnu.org; Sun, 10 Apr 2016 04:19:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apAaz-0000b0-6g for guix-devel@gnu.org; Sun, 10 Apr 2016 04:19:52 -0400 Received: from mailhub2.soe.uq.edu.au ([130.102.132.209]:35126 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apAay-0000aP-Ly for guix-devel@gnu.org; Sun, 10 Apr 2016 04:19:49 -0400 Received: from smtp1.soe.uq.edu.au (smtp1.soe.uq.edu.au [10.138.113.40]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id u3A8Je0I047804 for ; Sun, 10 Apr 2016 18:19:41 +1000 Received: from [192.168.1.105] (static.customers.nuskope.com.au [103.25.181.216] (may be forged)) (authenticated bits=0) by smtp1.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id u3A8JdCE020958 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 10 Apr 2016 18:19:40 +1000 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "guix-devel@gnu.org" Hi there, I'm running into clashes when using pytest plugins e.g. $ ./pre-inst-env guix environment -C --ad-hoc python-pytest-cov [..] warning: collision encountered: /gnu/store/cfj96msw5ypxcii4z615l03wbjq5hcs9-python-pytest-cov-2.2.0/bin/py.test /gnu/store/4hz0mf56b9mm8q97k5iw5xbb909vsz4p-python-pytest-2.7.3/bin/py.test warning: arbitrarily choosing /gnu/store/cfj96msw5ypxcii4z615l03wbjq5hcs9-python-pytest-cov-2.2.0/bin/py.test [..] i.e. the pytest executable is included in `python-pytest' as well `python-pytest-cov'. I'm not sure what the best thing to do is here, because no environment variable is honoured during the py.test startup sequence when looking for plugins: http://pytest.org/latest/writing_plugins.html#plugin-discovery-order-at-tool-startup Do any pythonistas have any ideas on how to get around this? Thanks, ben