From bb4a6b1bcb13188122925431b02d1b57c64e64d8 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Thu, 8 Aug 2019 15:22:21 -0400 Subject: [PATCH] Change how tox invokes pytest, to workaround a seeming tox bug which seems to be related to how it copes with code which emits warnings. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e075386..d4ab42c 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ deps = taxii2-client medallion commands = - pytest --cov=stix2 stix2/test/ --cov-report term-missing -W ignore::stix2.exceptions.STIXDeprecationWarning + python -m pytest --cov=stix2 stix2/test/ --cov-report term-missing -W ignore::stix2.exceptions.STIXDeprecationWarning passenv = CI TRAVIS TRAVIS_*