D5240: tests: fix up some import statements caught by Python 3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Nov 7 14:57:13 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG71b8ad0ef3e0: tests: fix up some import statements caught by Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5240?vs=12471&id=12472

REVISION DETAIL
  https://phab.mercurial-scm.org/D5240

AFFECTED FILES
  tests/test-remotefilelog-bundle2-legacy.t
  tests/test-remotefilelog-cacheprocess.t

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-cacheprocess.t b/tests/test-remotefilelog-cacheprocess.t
--- a/tests/test-remotefilelog-cacheprocess.t
+++ b/tests/test-remotefilelog-cacheprocess.t
@@ -16,7 +16,9 @@
   $ cd ..
 
   $ cat > cacheprocess-logger.py <<EOF
-  > import sys, os, shutil
+  > import os
+  > import shutil
+  > import sys
   > f = open('$TESTTMP/cachelog.log', 'w')
   > srccache = os.path.join('$TESTTMP', 'oldhgcache')
   > def log(message):
diff --git a/tests/test-remotefilelog-bundle2-legacy.t b/tests/test-remotefilelog-bundle2-legacy.t
--- a/tests/test-remotefilelog-bundle2-legacy.t
+++ b/tests/test-remotefilelog-bundle2-legacy.t
@@ -6,8 +6,8 @@
 generaldelta to generaldelta interactions with bundle2 but legacy clients
 without changegroup2 support
   $ cat > testcg2.py << EOF
+  > import sys
   > from mercurial import changegroup, registrar, util
-  > import sys
   > cmdtable = {}
   > command = registrar.command(cmdtable)
   > @command('testcg2', norepo=True)
@@ -22,7 +22,7 @@
   $ hg testcg2 || exit 80
 
   $ cat > disablecg2.py << EOF
-  > from mercurial import changegroup, util, error
+  > from mercurial import changegroup, error, util
   > deleted = False
   > def reposetup(ui, repo):
   >     global deleted



To: durin42, #hg-reviewers, martinvonz
Cc: mercurial-devel


More information about the Mercurial-devel mailing list