From f44d07956a2827484cddeee161cbd7724229f92f Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Mon, 10 Dec 2018 00:23:08 +0800 Subject: [PATCH] Get rid of psycopg2 warnings by disabling wheels The psycopg2 wheel package warnings are causing some tests to fail which expect there to be no stderr output. This fixes the problem by not using the wheel binary for that package. Closes-Bug: #1811876 Change-Id: Id43e74d8d343ab4e80d1d246543bada1ed4d06ad --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index fb2be51..c6c081c 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,8 @@ envlist = py26,py27,py26sa07,py27sa07,py26sa08,py27sa08,py26sa09,py27sa09,py33,p [testenv] usedevelop = True whitelist_externals = bash -install_command = pip install {opts} {packages} +# Avoid psycopg2 wheel package rename warnings by not using the binary. +install_command = pip install --no-binary psycopg2 {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt