Patchwork tests: update test-archive to pass our module import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2017, 3:28 p.m.
Message ID <a1744af43ccb894b3575.1503674918@imladris.local>
Download mbox | patch
Permalink /patch/23335/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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