From 314c5a5ea27a2e351759c47a90dd4e4c0c28b895 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Thu, 17 Apr 2014 23:00:13 +0200 Subject: [PATCH] Setuptools: try to fix samples data download for tests --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 61e59a2..9d9e348 100755 --- a/setup.py +++ b/setup.py @@ -15,8 +15,11 @@ class PyTest(TestCommand): #import here, cause outside the eggs aren't loaded import pytest - from tests.tools import check_samples - check_samples + import os + os.chdir('tests') + from tools import check_samples + check_samples() + os.chdir('..') errno = pytest.main(self.test_args) sys.exit(errno) -- 2.39.5