first step towards dropping sys.path dance

This commit is contained in:
niphlod
2016-08-29 23:01:22 +02:00
parent 326335c3cd
commit 1bf499e3be
28 changed files with 22 additions and 194 deletions
+1 -8
View File
@@ -9,11 +9,8 @@ import os
import unittest
import subprocess
import time
import signal
from .fix_path import fix_sys_path
fix_sys_path(__file__)
from gluon.contrib.webclient import WebClient
from gluon._compat import urllib2, PY2
@@ -32,7 +29,7 @@ def startwebserver():
break
path = os.path.abspath(os.path.join(path, '..'))
web2py_exec = os.path.join(path, 'web2py.py')
webserverprocess = subprocess.Popen([sys.executable, web2py_exec, '-a', 'testpass'])
webserverprocess = subprocess.Popen([sys.executable, web2py_exec, '-a', 'testpass'])
print('Sleeping before web2py starts...')
for a in range(1, 11):
time.sleep(1)
@@ -141,7 +138,3 @@ class TestWeb(LiveTest):
# check internal server error returned (issue 153)
assert(s.status == 500)
assert(s.text == xml_response)
if __name__ == '__main__':
unittest.main()