Patchwork [02,of,10] tests: update test-dirstate to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:41 p.m.
Message ID <3af7a4272590dae0812c.1503931315@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23402/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:41 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503431459 14400
#      Tue Aug 22 15:50:59 2017 -0400
# Node ID 3af7a4272590dae0812cd225cc49539a313b07c6
# Parent  74152a04c3bd15b1e01a621df329b9a84e5bbca2
tests: update test-dirstate to pass our import checker

Patch

diff --git a/tests/test-dirstate.t b/tests/test-dirstate.t
--- a/tests/test-dirstate.t
+++ b/tests/test-dirstate.t
@@ -66,7 +66,12 @@  Verify that exceptions during a dirstate
 coherent (issue4353)
 
   $ cat > ../dirstateexception.py <<EOF
-  > from mercurial import merge, extensions, error
+  > from __future__ import absolute_import
+  > from mercurial import (
+  >   error,
+  >   extensions,
+  >   merge,
+  > )
   > 
   > def wraprecordupdates(orig, repo, actions, branchmerge):
   >     raise error.Abort("simulated error while recording dirstateupdates")