changeset 33944:74e53c21fd13

tests: update test-archive to pass our module import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 14:58:21 -0400
parents fa187801f4b8
children 403040b5a5bd
files tests/test-archive.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-archive.t	Tue Aug 22 14:58:10 2017 -0400
+++ b/tests/test-archive.t	Tue Aug 22 14:58:21 2017 -0400
@@ -354,8 +354,9 @@
   $ hg -R repo add repo/a
   $ hg -R repo commit -m '#0' -d '456789012 21600'
   $ cat > show_mtime.py <<EOF
-  > from __future__ import print_function
-  > import sys, os
+  > from __future__ import absolute_import, print_function
+  > import os
+  > import sys
   > print(int(os.stat(sys.argv[1]).st_mtime))
   > EOF