[PATCH] tests: update test-archive to pass our module import checker

Augie Fackler raf at durin42.com
Fri Aug 25 15:28:38 UTC 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503428301 14400
#      Tue Aug 22 14:58:21 2017 -0400
# Node ID a1744af43ccb894b35751fad0fa8062ecfcbe1d0
# Parent  3de9e0de7e638f8be9c990ed440a14cdadd4493e
tests: update test-archive to pass our module import checker

diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -354,8 +354,9 @@ configured as GMT.
   $ 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
 


More information about the Mercurial-devel mailing list