Mikhail Korobov  committed 8999fe0

Import fab_deploy_tests only when it is certainly in PYTHONPATH.

  • Participants
  • Parent commits dd48ddc

Comments (0)

Files changed (1)

File fab_deploy_tests/

 import os.path
 import unittest
 from unittest import TestSuite, TestLoader
-from fab_deploy_tests.tests import *
 # always use fab_deploy from the checkout, not the installed version
 # plus make fab_deploy_tests available for imports
 path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
 sys.path.insert(0, path)
+from fab_deploy_tests.tests import *
 def load(cases):
     return map(TestLoader().loadTestsFromTestCase, cases)