test-bundle2: move file mode setting after sys import stable
authorMatt Mackall <mpm@selenic.com>
Wed, 30 Jul 2014 18:28:37 -0500
branchstable
changeset 21956 93b804fced5a
parent 21955 6dfb78f18bdb
child 21957 2122b82b6987
test-bundle2: move file mode setting after sys import
tests/test-bundle2.t
--- a/tests/test-bundle2.t	Sat Jul 26 09:27:11 2014 +0300
+++ b/tests/test-bundle2.t	Wed Jul 30 18:28:37 2014 -0500
@@ -8,6 +8,15 @@
   > code. We still need to be able to test it while it grow up.
   > """
   > 
+  > import sys
+  > from mercurial import cmdutil
+  > from mercurial import util
+  > from mercurial import bundle2
+  > from mercurial import scmutil
+  > from mercurial import discovery
+  > from mercurial import changegroup
+  > from mercurial import error
+  > 
   > try:
   >     import msvcrt
   >     msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
@@ -16,14 +25,6 @@
   > except ImportError:
   >     pass
   > 
-  > import sys
-  > from mercurial import cmdutil
-  > from mercurial import util
-  > from mercurial import bundle2
-  > from mercurial import scmutil
-  > from mercurial import discovery
-  > from mercurial import changegroup
-  > from mercurial import error
   > cmdtable = {}
   > command = cmdutil.command(cmdtable)
   >