[PATCH] tests: update test-bookmarks to pass the import checker

Augie Fackler raf at durin42.com
Fri Aug 25 15:28:41 UTC 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503428654 14400
#      Tue Aug 22 15:04:14 2017 -0400
# Node ID 0d21f0d60eb5b398cf622081f631cff647f1e6b7
# Parent  f98d4752474fd7a49a42944c6a8e611595af6e25
tests: update test-bookmarks to pass the import checker

diff --git a/tests/test-bookmarks.t b/tests/test-bookmarks.t
--- a/tests/test-bookmarks.t
+++ b/tests/test-bookmarks.t
@@ -948,8 +948,10 @@ ensure changelog is written before bookm
   $ echo a > a
 
   $ cat > $TESTTMP/pausefinalize.py <<EOF
+  > from __future__ import absolute_import
+  > import os
+  > import time
   > from mercurial import extensions, localrepo
-  > import os, time
   > def transaction(orig, self, desc, report=None):
   >    tr = orig(self, desc, report)
   >    def sleep(*args, **kwargs):


More information about the Mercurial-devel mailing list