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

Yuya Nishihara yuya at tcha.org
Tue May 24 14:32:50 UTC 2016


# HG changeset patch
# User Yuya Nishihara <yuya at 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

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))



More information about the Mercurial-devel mailing list