diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 15:26:47 +0200 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 15:26:47 +0200 |
| commit | 04ecd5542849191457ccfc3e42a39452db47825a (patch) | |
| tree | b0a470e46326b709d090a900847bbb004d355607 /paste/debug/testserver.py | |
| parent | 4c177fce89fee925f0f4fbfde00ce2e1252562c0 (diff) | |
| download | paste-04ecd5542849191457ccfc3e42a39452db47825a.tar.gz | |
Strip trailing spaces
Diffstat (limited to 'paste/debug/testserver.py')
| -rwxr-xr-x | paste/debug/testserver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/debug/testserver.py b/paste/debug/testserver.py index 4817161..8044c7c 100755 --- a/paste/debug/testserver.py +++ b/paste/debug/testserver.py @@ -28,7 +28,7 @@ class WSGIRegressionServer(WSGIServer): self.pending = [] self.timeout = self.defaulttimeout # this is a local connection, be quick - self.socket.settimeout(2) + self.socket.settimeout(2) def serve_forever(self): from threading import Thread thread = Thread(target=self.serve_pending) @@ -75,13 +75,13 @@ if __name__ == '__main__': def fetch(path): # tell the server to humor exactly one more request server.accept(1) - # not needed; but this is what you do if the server + # not needed; but this is what you do if the server # may not respond in a resonable time period import socket socket.setdefaulttimeout(5) # build a uri, fetch and return return urlopen(baseuri + path).read() - + assert "PATH_INFO: /foo" in fetch("/foo") assert "PATH_INFO: /womble" in fetch("/womble") |
