Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: net/tools/testserver/testserver.py

Issue 10983003: Remove DeprecationWarning filtering from testserver.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This is a simple HTTP/FTP/SYNC/TCP/UDP/ server used for testing Chrome. 6 """This is a simple HTTP/FTP/SYNC/TCP/UDP/ server used for testing Chrome.
7 7
8 It supports several test URLs, as specified by the handlers in TestPageHandler. 8 It supports several test URLs, as specified by the handlers in TestPageHandler.
9 By default, it listens on an ephemeral port and sends the port number back to 9 By default, it listens on an ephemeral port and sends the port number back to
10 the originating process over a pipe. The originating process can specify an 10 the originating process over a pipe. The originating process can specify an
(...skipping 21 matching lines...) Expand all
32 import SocketServer 32 import SocketServer
33 import struct 33 import struct
34 import sys 34 import sys
35 import threading 35 import threading
36 import time 36 import time
37 import urllib 37 import urllib
38 import urlparse 38 import urlparse
39 import warnings 39 import warnings
40 import zlib 40 import zlib
41 41
42 # Ignore deprecation warnings, they make our output more cluttered.
43 warnings.filterwarnings("ignore", category=DeprecationWarning)
44
45 import echo_message 42 import echo_message
46 43
47 # TODO(toyoshim): Some try bots for pyauto don't check out pywebsocket repos 44 # TODO(toyoshim): Some try bots for pyauto don't check out pywebsocket repos
48 # unexpectedly. pyauto doesn't use WebSocket module, so just ignore 45 # unexpectedly. pyauto doesn't use WebSocket module, so just ignore
49 # ImportError as a temporal workaround. 46 # ImportError as a temporal workaround.
50 # http://crbug.com/155918 47 # http://crbug.com/155918
51 try: 48 try:
52 from mod_pywebsocket.standalone import WebSocketServer 49 from mod_pywebsocket.standalone import WebSocketServer
53 except ImportError: 50 except ImportError:
54 pass 51 pass
(...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 dest='host', 2466 dest='host',
2470 help='Hostname or IP upon which the server will ' 2467 help='Hostname or IP upon which the server will '
2471 'listen. Client connections will also only be ' 2468 'listen. Client connections will also only be '
2472 'allowed from this address.') 2469 'allowed from this address.')
2473 option_parser.add_option('', '--auth-token', dest='auth_token', 2470 option_parser.add_option('', '--auth-token', dest='auth_token',
2474 help='Specify the auth token which should be used' 2471 help='Specify the auth token which should be used'
2475 'in the authorization header for GData.') 2472 'in the authorization header for GData.')
2476 options, args = option_parser.parse_args() 2473 options, args = option_parser.parse_args()
2477 2474
2478 sys.exit(main(options, args)) 2475 sys.exit(main(options, args))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698