Patchwork [3,of,5] tests: test-archive.t use absolute_import

login
register
mail settings
Submitter timeless
Date May 11, 2016, 5:21 a.m.
Message ID <48413cfd3a0873e14fb8.1462944064@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/15001/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless - May 11, 2016, 5:21 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1462562269 0
#      Fri May 06 19:17:49 2016 +0000
# Node ID 48413cfd3a0873e14fb8227c7636bda9d42a0ef6
# Parent  4863c4335adb884356b47339c37bec543c889a95
# EXP-Topic runtests
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 48413cfd3a08
tests: test-archive.t use absolute_import

This is a step to adding a mercurial dependency to simplify py3 compat

Patch

diff -r 4863c4335adb -r 48413cfd3a08 tests/test-archive.t
--- a/tests/test-archive.t	Fri May 06 19:16:16 2016 +0000
+++ b/tests/test-archive.t	Fri May 06 19:17:49 2016 +0000
@@ -69,7 +69,10 @@ 
   $ TIP=`hg id -v | cut -f1 -d' '`
   $ QTIP=`hg id -q`
   $ cat > getarchive.py <<EOF
-  > import os, sys, urllib2
+  > from __future__ import absolute_import
+  > import os
+  > import sys
+  > import urllib2
   > try:
   >     # Set stdout to binary mode for win32 platforms
   >     import msvcrt