changeset 28928:59481bfdb7f3

tests: make test-pathencode use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 16 Apr 2016 03:04:23 +0530
parents 2d433fa7ff44
children b9ed5a88710c
files tests/test-check-py3-compat.t tests/test-pathencode.py
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Sat Apr 16 02:59:36 2016 +0530
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 03:04:23 2016 +0530
@@ -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-trusted.py requires print_function
 
 #if py3exe
--- a/tests/test-pathencode.py	Sat Apr 16 02:59:36 2016 +0530
+++ b/tests/test-pathencode.py	Sat Apr 16 03:04:23 2016 +0530
@@ -5,11 +5,19 @@
 # that have proven likely to expose bugs and divergent behavior in
 # different encoding implementations.
 
-from __future__ import print_function
+from __future__ import absolute_import, print_function
 
-from mercurial import store
-import binascii, itertools, math, os, random, sys, time
+import binascii
 import collections
+import itertools
+import math
+import os
+import random
+import sys
+import time
+from mercurial import (
+    store,
+)
 
 validchars = set(map(chr, range(0, 256)))
 alphanum = range(ord('A'), ord('Z'))