tests/sitecustomize.py
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 20 Mar 2015 23:35:13 -0400
changeset 24425 3a4122bb9488
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
crecord: don't abort on Windows when curses isn't available This is the hack portion of the previous patch, which can be backed out once we figure out how to deal with curses. Without this, the tests affected by the import problem mentioned in the previous patch fail in exactly the same way, but with the nicer 'module not available' error.

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