diff options
author | murgatroid99 <mlumish@google.com> | 2015-09-22 14:13:44 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-09-22 14:13:44 -0700 |
commit | 521300e6e882529c08362321afb9821a2912e265 (patch) | |
tree | fd22df2fa1b1aebc5ebac62181e9a4d2b482202b /tools/run_tests/port_server.py | |
parent | 08fac99e73d815c7f3527c84a84dce315816e13c (diff) | |
parent | e456f77644e5ef5b60c7332136047ab3f5d4454e (diff) |
Merge branch 'master' into core_gyp
Diffstat (limited to 'tools/run_tests/port_server.py')
-rwxr-xr-x | tools/run_tests/port_server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/port_server.py b/tools/run_tests/port_server.py index d14c829fe0..acb6deaae6 100755 --- a/tools/run_tests/port_server.py +++ b/tools/run_tests/port_server.py @@ -37,7 +37,6 @@ import os import socket import sys import time -import yaml argp = argparse.ArgumentParser(description='Server for httpcli_test') argp.add_argument('-p', '--port', default=12345, type=int) @@ -118,6 +117,9 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler): self.end_headers() self.wfile.write(_MY_VERSION) elif self.path == '/dump': + # yaml module is not installed on Macs and Windows machines by default + # so we import it lazily (/dump action is only used for debugging) + import yaml self.send_response(200) self.send_header('Content-Type', 'text/plain') self.end_headers() |