tests: update test-eol to pass our import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 15:51:06 -0400
changeset 33955 efa6a420ba57
parent 33954 b9765319880e
child 33956 1be228b96030
tests: update test-eol to pass our import checker
tests/test-eol.t
--- a/tests/test-eol.t	Tue Aug 22 15:50:59 2017 -0400
+++ b/tests/test-eol.t	Tue Aug 22 15:51:06 2017 -0400
@@ -8,9 +8,11 @@
 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: