changeset 27280:4056fdf71aff

tests/test-ancestor: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Dec 2015 22:07:13 -0800
parents 40eb385f798f
children 3b517f2a3989
files tests/test-ancestor.py tests/test-check-py3-compat.t
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-ancestor.py	Sun Dec 06 22:39:12 2015 -0800
+++ b/tests/test-ancestor.py	Sun Dec 06 22:07:13 2015 -0800
@@ -1,6 +1,21 @@
-from mercurial import ancestor, commands, hg, ui, util
+from __future__ import absolute_import
+
+import binascii
+import getopt
+import math
+import os
+import random
+import sys
+import time
+
 from mercurial.node import nullrev
-import binascii, getopt, math, os, random, sys, time
+from mercurial import (
+    ancestor,
+    commands,
+    hg,
+    ui,
+    util,
+)
 
 def buildgraph(rng, nodes=100, rootprob=0.05, mergeprob=0.2, prevprob=0.7):
     '''nodes: total number of nodes in the graph
--- a/tests/test-check-py3-compat.t	Sun Dec 06 22:39:12 2015 -0800
+++ b/tests/test-check-py3-compat.t	Sun Dec 06 22:07:13 2015 -0800
@@ -174,7 +174,6 @@
   tests/sitecustomize.py not using absolute_import
   tests/svn-safe-append.py not using absolute_import
   tests/svnxml.py not using absolute_import
-  tests/test-ancestor.py not using absolute_import
   tests/test-ancestor.py requires print_function
   tests/test-atomictempfile.py not using absolute_import
   tests/test-batching.py not using absolute_import