diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2014-06-01 20:29:24 -0700 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2014-06-01 20:40:26 -0700 |
| commit | ffe4bdad4872fdce56299681cbb0ff579f5ced71 (patch) | |
| tree | 0e7d26e262365cb72a5469b3d7f947e8b46525ae /tests/test_expect.py | |
| parent | 68264e3a88c223e0f41450f39c356a0fea23ad82 (diff) | |
| download | pexpect-ffe4bdad4872fdce56299681cbb0ff579f5ced71.tar.gz | |
Ignore coverage env var if not set
Diffstat (limited to 'tests/test_expect.py')
| -rwxr-xr-x | tests/test_expect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py index a0d42ea..43b2858 100755 --- a/tests/test_expect.py +++ b/tests/test_expect.py @@ -76,7 +76,7 @@ class assert_raises_msg(object): def no_coverage_env(): "Return a copy of os.environ that won't trigger coverage measurement." env = os.environ.copy() - env.pop('COV_CORE_SOURCE') + env.pop('COV_CORE_SOURCE', None) return env class ExpectTestCase (PexpectTestCase.PexpectTestCase): |
