tests/sitecustomize.py
author Durham Goode <durham@fb.com>
Wed, 30 Apr 2014 15:36:38 -0700
branchstable
changeset 21206 c77418938d05
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
transaction: fix file descriptor leak for journal.backupfiles The journal.backupfiles descriptor wasn't being closed. This resulted in hgsubversion test runs having a bagillion descriptors open, which crashed on platforms with low open file limits (like OSX).

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass