Patchwork [03,of,10] tests: update test-eol to pass our import checker

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

Comments

Augie Fackler - Aug. 28, 2017, 2:41 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503431466 14400
#      Tue Aug 22 15:51:06 2017 -0400
# Node ID b2a6c360f3ffdf5821626820191389457ad0ec03
# Parent  3af7a4272590dae0812cd225cc49539a313b07c6
tests: update test-eol to pass our import checker

Patch

diff --git a/tests/test-eol.t b/tests/test-eol.t
--- a/tests/test-eol.t
+++ b/tests/test-eol.t
@@ -8,9 +8,11 @@  Test EOL extension
 Set up helpers
 
   $ cat > switch-eol.py <<EOF
+  > from __future__ import absolute_import
+  > import os
   > import sys
   > try:
-  >     import os, msvcrt
+  >     import msvcrt
   >     msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
   > except ImportError: