Patchwork [2,of,5] hghave: silence future pyflakes warning of unused import

login
register
mail settings
Submitter Yuya Nishihara
Date May 24, 2016, 2:32 p.m.
Message ID <bc52f617e40dc27529a1.1464100370@mimosa>
Download mbox | patch
Permalink /patch/15188/
State Accepted
Headers show

Comments

Yuya Nishihara - May 24, 2016, 2:32 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1463276426 -32400
#      Sun May 15 10:40:26 2016 +0900
# Node ID bc52f617e40dc27529a19be0e44c30873616e4c6
# Parent  23d1fdaa1d6407ba3c683716ca79e99f53daa4a1
hghave: silence future pyflakes warning of unused import

Patch

diff --git a/tests/hghave b/tests/hghave
--- a/tests/hghave
+++ b/tests/hghave
@@ -49,6 +49,7 @@  def _loadaddon():
     sys.path.insert(0, path)
     try:
         import hghaveaddon
+        assert hghaveaddon  # silence pyflakes
     except BaseException as inst:
         sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n'
                          % (path, inst))