]> git.parisson.com Git - timeside.git/commitdiff
Setuptools: try to fix samples data download for tests
authorThomas Fillon <thomas@parisson.com>
Thu, 17 Apr 2014 21:00:13 +0000 (23:00 +0200)
committerThomas Fillon <thomas@parisson.com>
Thu, 17 Apr 2014 21:00:13 +0000 (23:00 +0200)
setup.py

index 61e59a265cf143e88054b307fe62ab0be1cb215e..9d9e348c6844430a9fbce285d7b994e9109f7fb8 100755 (executable)
--- 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)