[PATCH 1 of 9] tests: sort import lines in dumbhttp.py

Yuya Nishihara yuya at tcha.org
Mon Apr 4 15:07:34 UTC 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1459680005 -32400
#      Sun Apr 03 19:40:05 2016 +0900
# Node ID 9f464eb9b73b47c5420264774b373ce049ad9148
# Parent  cb235ffd29c42a2f449f78a6f8c049bcf84a997f
tests: sort import lines in dumbhttp.py

This series is an attempt to enable import-checker.py for tests/**.py, but
it turned out not easy. Since many tests have been ported to absolute_import
without the coverage, import-checker.py reports a lot of errors right now.

Should we enable import-checker.py without fixing all of them so that we
won't get more errors?

diff --git a/tests/dumbhttp.py b/tests/dumbhttp.py
--- a/tests/dumbhttp.py
+++ b/tests/dumbhttp.py
@@ -6,10 +6,10 @@ from __future__ import absolute_import
 Small and dumb HTTP server for use in tests.
 """
 
+import BaseHTTPServer
+import SimpleHTTPServer
 import optparse
-import BaseHTTPServer
 import signal
-import SimpleHTTPServer
 import sys
 
 from mercurial import (


More information about the Mercurial-devel mailing list