[PATCH 7 of 8] tests: make test-pathencode use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 04:02:17 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460161528 -19800
#      Sat Apr 09 05:55:28 2016 +0530
# Node ID 550c832cb7d523733c5795ba66f7e3f32ae6c1fb
# Parent  433c76d27ae3ed15dc5e297e4743a77328585e9f
tests: make test-pathencode use absolute_import

diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -60,7 +60,6 @@
   tests/test-lrucachedict.py not using absolute_import
   tests/test-lrucachedict.py requires print_function
   tests/test-manifest.py not using absolute_import
-  tests/test-pathencode.py not using absolute_import
   tests/test-pathencode.py requires print_function
   tests/test-trusted.py requires print_function
 
diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py
--- a/tests/test-pathencode.py
+++ b/tests/test-pathencode.py
@@ -5,9 +5,16 @@
 # that have proven likely to expose bugs and divergent behavior in
 # different encoding implementations.
 
+from __future__ import absolute_import
+import binascii
+import collections
+import itertools
+import math
+import os
+import random
+import sys
+import time
 from mercurial import store
-import binascii, itertools, math, os, random, sys, time
-import collections
 
 validchars = set(map(chr, range(0, 256)))
 alphanum = range(ord('A'), ord('Z'))


More information about the Mercurial-devel mailing list