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

Side by Side Diff: tests/local_rietveld.py

Issue 6690034: Add more python 2.5 compatibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 months 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python2.5
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 """Setups a local Rietveld instance to test against a live server for 6 """Setups a local Rietveld instance to test against a live server for
7 integration tests. 7 integration tests.
8 8
9 It makes sure Google AppEngine SDK is found, download Rietveld and Django code 9 It makes sure Google AppEngine SDK is found, download Rietveld and Django code
10 if necessary and starts the server on a free inbound TCP port. 10 if necessary and starts the server on a free inbound TCP port.
11 """ 11 """
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 instance.start_server(verbose=options.verbose) 137 instance.start_server(verbose=options.verbose)
138 print 'Local rietveld instance started on port %d' % instance.port 138 print 'Local rietveld instance started on port %d' % instance.port
139 while True: 139 while True:
140 time.sleep(0.1) 140 time.sleep(0.1)
141 finally: 141 finally:
142 instance.stop_server() 142 instance.stop_server()
143 143
144 144
145 if __name__ == '__main__': 145 if __name__ == '__main__':
146 main() 146 main()
OLDNEW
« no previous file with comments | « tests/gclient_utils_test.py ('k') | tests/owners_unittest.py » ('j') | tests/owners_unittest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698