Fix pypy wsgi tests

Adds the path to site-packages for pypy

Change-Id: Idabf537cdaf0eadf960888ecd2f13809271facd5
This commit is contained in:
Sachi King 2016-05-25 12:23:17 +10:00
parent 83b9e6f3a6
commit c9b2c50434
1 changed files with 5 additions and 1 deletions

View File

@ -33,8 +33,12 @@ class TestWsgiScripts(base.BaseTestCase):
def _get_path(self):
if os.path.isdir("%s/lib64" % self.temp_dir):
path = "%s/lib64" % self.temp_dir
else:
elif os.path.isdir("%s/lib" % self.temp_dir):
path = "%s/lib" % self.temp_dir
elif os.path.isdir("%s/site-packages" % self.temp_dir):
return ".:%s/site-packages" % self.temp_dir
else:
raise Exception("Could not determine path for test")
return ".:%s/python%s.%s/site-packages" % (
path,
sys.version_info[0],