Patchwork [05,of,10] tests: update test-merge-symlinks to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:55 p.m.
Message ID <1a76ab57efe7ae6cea50.1503932156@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23416/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435517 14400
#      Tue Aug 22 16:58:37 2017 -0400
# Node ID 1a76ab57efe7ae6cea50119a6a3e06fcf5833a2a
# Parent  2d0bd884a8a10cd63777d59a2df43c2103102a11
tests: update test-merge-symlinks to pass our import checker

Patch

diff --git a/tests/test-merge-symlinks.t b/tests/test-merge-symlinks.t
--- a/tests/test-merge-symlinks.t
+++ b/tests/test-merge-symlinks.t
@@ -1,7 +1,8 @@ 
   $ cat > echo.py <<EOF
   > #!$PYTHON
-  > from __future__ import print_function
-  > import os, sys
+  > from __future__ import absolute_import, print_function
+  > import os
+  > import sys
   > try:
   >     import msvcrt
   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)