Patchwork [07,of,10] tests: update test-notify to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:55 p.m.
Message ID <c34b3b4fbd7ebb609483.1503932158@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23419/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435527 14400
#      Tue Aug 22 16:58:47 2017 -0400
# Node ID c34b3b4fbd7ebb6094836b71896530a7281cf01c
# Parent  198590263d2e765f0ba50ec295962ca96d1d8313
tests: update test-notify to pass our import checker

Patch

diff --git a/tests/test-notify.t b/tests/test-notify.t
--- a/tests/test-notify.t
+++ b/tests/test-notify.t
@@ -1,6 +1,7 @@ 
   $ cat > $TESTTMP/filter.py <<EOF
-  > from __future__ import print_function
-  > import sys, re
+  > from __future__ import absolute_import, print_function
+  > import re
+  > import sys
   > print(re.sub("\n[ \t]", " ", sys.stdin.read()), end="")
   > EOF