diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 23:02:29 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-27 23:02:29 -0500 |
| commit | 9d89805e5a4a9969387f58f7b299231ae7ec8486 (patch) | |
| tree | 71174dd5ba518ca36e4663f0a7c24ac123ac023d /coverage | |
| parent | cd1929b269118e6f335aea74165e9366b3c3ac42 (diff) | |
| download | python-coveragepy-git-9d89805e5a4a9969387f58f7b299231ae7ec8486.tar.gz | |
Add more tests of omitting files during HTML reporting, and a better way to enable re-importing modules during test_farm tests.
Diffstat (limited to 'coverage')
| -rw-r--r-- | coverage/files.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/files.py b/coverage/files.py index 3968b567..bf60f8b4 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -38,6 +38,8 @@ class FileLocator(object): f = os.path.basename(f) if not os.path.isabs(f): for path in [os.curdir] + sys.path: + if path is None: + continue g = os.path.join(path, f) if os.path.exists(g): f = g |
