mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
* Run tests one file at a time, as the teardown isn't cleaning up objects in global namespace properly
This commit is contained in:
parent
4126ef3b8c
commit
27c8dc3db2
6
fabfile.py
vendored
6
fabfile.py
vendored
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user