[PATCH 02 of 10] tests: update test-dirstate to pass our import checker
Augie Fackler
raf at durin42.com
Mon Aug 28 10:41:55 EDT 2017
# HG changeset patch
# User Augie Fackler <raf at 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
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")
More information about the Mercurial-devel
mailing list