From 62f24209d33a440762828349ca41a73bbd40a134 Mon Sep 17 00:00:00 2001 From: Camille Rodriguez Date: Tue, 27 Aug 2019 09:57:47 -0400 Subject: [PATCH] Avoid pollution and false positives with tox.ini - removing sitepackages in tox.ini to avoid test env pollution - skip_missing_interpreters in tox.ini set to False to avoid false positives by skipping missing interpreters. Change-Id: I4d7814a557bb17afb932ddcff6c75f2a8f61f51e --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 4d5e5ca..bcf206c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,10 @@ [tox] skipsdist = True envlist = pep8 +# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages. +sitepackages = False +# NOTE(beisner): Avoid false positives by not skipping missing interpreters. +skip_missing_interpreters = False [testenv] basepython = python2.7 @@ -16,6 +20,7 @@ deps = whitelist_externals = /bin/true /bin/echo [testenv:build] +basepython = python3 commands = /bin/echo 'WARNING: *build* target is for testing only.' charm-build --log-level DEBUG -o {toxinidir}/build .