diff options
author | Thomas Kluyver <takowl@gmail.com> | 2013-10-20 20:52:11 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2013-10-20 20:52:11 -0700 |
commit | 34bd03fc6abad0c6b4a823ded8a8c42f0eb5fcfa (patch) | |
tree | f42d1750733faf38cb7a602c8b27e8e59541552d /tests/interact.py | |
parent | c107909f1fb218f773daf65d6f3d862aedb6809e (diff) | |
download | pexpect-git-34bd03fc6abad0c6b4a823ded8a8c42f0eb5fcfa.tar.gz |
Measure code coverage in interact tests
Diffstat (limited to 'tests/interact.py')
-rwxr-xr-x | tests/interact.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/interact.py b/tests/interact.py index b0488b1..3ea8c5b 100755 --- a/tests/interact.py +++ b/tests/interact.py @@ -18,6 +18,13 @@ PEXPECT LICENSE OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ''' +try: + # This allows coverage to measure code run in this process + import coverage + coverage.process_startup() +except ImportError: + pass + import pexpect import sys |