diff tests/test-largefiles-cache.t @ 33990:b4707311d982

tests: update test-largefiles-cache to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 17:15:14 -0400
parents 24849d53697d
children eb586ed5d8ce
line wrap: on
line diff
--- a/tests/test-largefiles-cache.t	Tue Aug 22 17:15:09 2017 -0400
+++ b/tests/test-largefiles-cache.t	Tue Aug 22 17:15:14 2017 -0400
@@ -94,9 +94,11 @@
 
   $ cat > ls-l.py <<EOF
   > #!$PYTHON
-  > import sys, os
+  > from __future__ import absolute_import, print_function
+  > import os
+  > import sys
   > path = sys.argv[1]
-  > print('%03o' % (os.lstat(path).st_mode & 0777))
+  > print('%03o' % (os.lstat(path).st_mode & 0o777))
   > EOF
   $ chmod +x ls-l.py