Patchwork tests: update test-bookmarks to pass the import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2017, 3:28 p.m.
Message ID <0d21f0d60eb5b398cf62.1503674921@imladris.local>
Download mbox | patch
Permalink /patch/23338/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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):