Patchwork [4,of,7] tests: move stdlib imports before mercurial modules in test-parseindex2

login
register
mail settings
Submitter Yuya Nishihara
Date April 9, 2016, 10:56 a.m.
Message ID <86005c9e26842d8bbcbb.1460199376@mimosa>
Download mbox | patch
Permalink /patch/14462/
State Accepted
Headers show

Comments

Yuya Nishihara - April 9, 2016, 10:56 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1459866223 -32400
#      Tue Apr 05 23:23:43 2016 +0900
# Node ID 86005c9e26842d8bbcbb8aea6d505dbbb1b612db
# Parent  383de8662e15c6eae956533ea9251515c1aa0e46
tests: move stdlib imports before mercurial modules in test-parseindex2

Patch

diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py
--- a/tests/test-parseindex2.py
+++ b/tests/test-parseindex2.py
@@ -4,6 +4,11 @@  It also checks certain aspects of the pa
 """
 
 from __future__ import absolute_import, print_function
+
+import struct
+import subprocess
+import sys
+
 from mercurial import (
     parsers,
 )
@@ -11,9 +16,6 @@  from mercurial.node import (
     nullid,
     nullrev,
 )
-import struct
-import subprocess
-import sys
 
 # original python implementation
 def gettype(q):