From 2dcfbad0226f7230acca957a563fb6750c42a956 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 10 Apr 2018 02:59:38 +0300 Subject: [PATCH] test: call nosetests directly Previous method of calling nose.main() didn't really work on windows. Signed-off-by: Ruslan Kuprieiev --- tests/__main__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/__main__.py b/tests/__main__.py index f0cea5e3c..f71406278 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -1,4 +1,7 @@ -import nose +import os +from subprocess import check_call -if __name__ == '__main__': - nose.main(argv=['--cover-inclusive', '--cover-erase', '--cover-package=dvc', '--with-coverage']) +REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +os.chdir(REPO_ROOT) + +check_call('nosetests --cover-inclusive --cover-erase --cover-package=dvc --with-coverage', shell=True)