[PATCH 3 of 5] tests: test-archive.t use absolute_import
timeless
timeless at fmr.im
Wed May 11 01:21:04 EDT 2016
# HG changeset patch
# User timeless <timeless at 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
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
More information about the Mercurial-devel
mailing list