X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/de9d73176a3cc5c965e10664c626348c575dfc98..305ca4a6af3a93c0c85adadc330ac6b0c6abddf4:/sdk/python/tests/run_test_server.py diff --git a/sdk/python/tests/run_test_server.py b/sdk/python/tests/run_test_server.py index b14ad141e0..eb2784c714 100644 --- a/sdk/python/tests/run_test_server.py +++ b/sdk/python/tests/run_test_server.py @@ -338,7 +338,7 @@ def run(leave_running_atexit=False): resdir = subprocess.check_output(['bundle', 'exec', 'passenger-config', 'about', 'resourcesdir']).decode().rstrip() with open(resdir + '/templates/standalone/config.erb') as f: template = f.read() - newtemplate = re.sub('http {', 'http {\n passenger_stat_throttle_rate 0;', template) + newtemplate = re.sub(r'http \{', 'http {\n passenger_stat_throttle_rate 0;', template) if newtemplate == template: raise "template edit failed" with open('tmp/passenger-nginx.conf.erb', 'w') as f: