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