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
This commit is contained in:
Chih-Hsuan Yen 2018-12-10 00:23:08 +08:00 committed by Matt Riedemann
parent 02c26a2ced
commit f44d07956a
1 changed files with 2 additions and 1 deletions

View File

@ -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