X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8d3aec7a9485d0bec6b672d0b9097e02a1ceea09..6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c:/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: