# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1406762917 18000
#      Wed Jul 30 18:28:37 2014 -0500
# Branch stable
# Node ID 93b804fced5ac3663a0f81d4fcee49ef23305371
# Parent  6dfb78f18bdba03067c7060cbe5b4ca2e757dde9
test-bundle2: move file mode setting after sys import

diff --git a/tests/test-bundle2.t b/tests/test-bundle2.t
--- a/tests/test-bundle2.t
+++ b/tests/test-bundle2.t
@@ -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)
   >