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 | 267506432b81cd9cf95f0062076a963d7adcbc02 (patch) | |
tree | 1f7039b8d1d20414402b6112b31984a41955ff0a /coverage/files.py | |
parent | 040044ac530a9aafb81593e008f49615e70402a5 (diff) | |
download | python-coveragepy-267506432b81cd9cf95f0062076a963d7adcbc02.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/files.py')
-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 3968b56..bf60f8b 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 |