Patchwork [2,of,6,V2] tests: use absolute_import in test-duplicateoptions.py

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 2:30 p.m.
Message ID <4658e3f3afc977df473c.1459693831@roby>
Download mbox | patch
Permalink /patch/14284/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 2:30 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459691775 -10800
#      Sun Apr 03 16:56:15 2016 +0300
# Node ID 4658e3f3afc977df473cf27e3ea021ccd1548ffd
# Parent  7c86c35aea02711df6fbdbd7310c3d111f42c6b6
tests: use absolute_import  in test-duplicateoptions.py

Patch

diff -r 7c86c35aea02 -r 4658e3f3afc9 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sun Apr 03 16:34:55 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 16:56:15 2016 +0300
@@ -56,7 +56,6 @@ 
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
   tests/test-doctest.py not using absolute_import
-  tests/test-duplicateoptions.py not using absolute_import
   tests/test-duplicateoptions.py requires print_function
   tests/test-filecache.py not using absolute_import
   tests/test-filecache.py requires print_function
diff -r 7c86c35aea02 -r 4658e3f3afc9 tests/test-duplicateoptions.py
--- a/tests/test-duplicateoptions.py	Sun Apr 03 16:34:55 2016 +0300
+++ b/tests/test-duplicateoptions.py	Sun Apr 03 16:56:15 2016 +0300
@@ -1,5 +1,10 @@ 
+from __future__ import absolute_import
 import os
-from mercurial import ui, commands, extensions
+from mercurial import (
+    commands,
+    extensions,
+    ui,
+)
 
 ignore = set(['highlight', 'win32text', 'factotum'])