[PATCH 2 of 5] tests: fix style issue of importing order in test-lock.py

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Fri Oct 12 03:48:44 EDT 2018


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1538963136 -32400
#      Mon Oct 08 10:45:36 2018 +0900
# Node ID 06db0c68e10d53381714f5f4224f00cf4d07a4d0
# Parent  46871703ab061d8370eb1a56c0df3e5d748ae154
# Available At https://bitbucket.org/foozy/mercurial-wip
#              hg pull https://bitbucket.org/foozy/mercurial-wip -r 06db0c68e10d
# EXP-Topic tests-fix-import-issues
tests: fix style issue of importing order in test-lock.py

test-lock.py is excluded in test-check-module-imports.t, because
import-checker.py reports that some stdlibs are imported after local
silenttestrunner module.

I can not found out any reason why tests/silenttestrunner.py should be
imported before some stdlibs from the point of functionality view.

diff --git a/tests/test-lock.py b/tests/test-lock.py
--- a/tests/test-lock.py
+++ b/tests/test-lock.py
@@ -2,11 +2,12 @@ from __future__ import absolute_import
 
 import copy
 import errno
-import silenttestrunner
 import tempfile
 import types
 import unittest
 
+import silenttestrunner
+
 from mercurial import (
     encoding,
     error,


More information about the Mercurial-devel mailing list