From 7ca51d772999ae9651d2c82523e11a3ee136c939 Mon Sep 17 00:00:00 2001 From: Kit Yan Choi Date: Thu, 23 Jul 2020 14:03:46 +0100 Subject: [PATCH] Switch on default warning flag --- etstool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etstool.py b/etstool.py index 3bd639601..ad28ef91a 100644 --- a/etstool.py +++ b/etstool.py @@ -248,11 +248,11 @@ def test(runtime, toolkit, environment): parameters["integrationtests"] = os.path.abspath("integrationtests") commands = [ - "edm run -e {environment} -- coverage run -p -m unittest discover -v traitsui", + "edm run -e {environment} -- python -W default -m coverage run -p -m unittest discover -v traitsui", # coverage run prevents local images to be loaded for demo examples # which are not defined in Python packages. Run with python directly # instead. - "edm run -e {environment} -- python -m unittest discover -v {integrationtests}", + "edm run -e {environment} -- python -W default -m unittest discover -v {integrationtests}", ] # We run in a tempdir to avoid accidentally picking up wrong traitsui