tests/hghave
changeset 29231 b1b35a9051c3
parent 29161 f8b274df33dc
child 43691 47ef023d0165
equal deleted inserted replaced
29230:b68af177937d 29231:b1b35a9051c3
    47         return
    47         return
    48 
    48 
    49     sys.path.insert(0, path)
    49     sys.path.insert(0, path)
    50     try:
    50     try:
    51         import hghaveaddon
    51         import hghaveaddon
       
    52         assert hghaveaddon  # silence pyflakes
    52     except BaseException as inst:
    53     except BaseException as inst:
    53         sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n'
    54         sys.stderr.write('failed to import hghaveaddon.py from %r: %s\n'
    54                          % (path, inst))
    55                          % (path, inst))
    55         sys.exit(2)
    56         sys.exit(2)
    56     sys.path.pop(0)
    57     sys.path.pop(0)