From 27c8dc3db29d50872a91437a954556173cd3816d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 6 Jun 2015 05:58:16 +0200 Subject: [PATCH] * Run tests one file at a time, as the teardown isn't cleaning up objects in global namespace properly --- fabfile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index b3144d8ac..0c7670b05 100644 --- a/fabfile.py +++ b/fabfile.py @@ -52,8 +52,12 @@ def clean(): def test(): with virtualenv(VENV_DIR): + # Run each test file separately. pytest is performing poorly, not sure why with lcd(path.dirname(__file__)): - local('py.test -x') + files = local('ls tests/test_*.py', capture=True) + for fn in files: + with settings(warn_only=True): + local('py.test -x %s' % fn) def train(json_dir=None, dev_loc=None, model_dir=None):