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

Pulkit Goyal 7895pulkit at gmail.com
Fri Apr 15 18:37:40 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460756063 -19800
#      Sat Apr 16 03:04:23 2016 +0530
# Node ID 21e58cfd80a6fdd46b79465196789880375909d7
# Parent  90a2e5183954eae72bd8f0fc1134e8d052f23a15
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-trusted.py requires print_function
 
 #if py3exe
diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py
--- a/tests/test-pathencode.py
+++ b/tests/test-pathencode.py
@@ -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'))


More information about the Mercurial-devel mailing list