diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-13 21:13:32 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-13 21:13:32 -0500 |
commit | c8ce85ae37236c43c6733b07948abd5d4380e008 (patch) | |
tree | 8895f893f3d258ee818e6e934cf0b07280c42846 /coverage/control.py | |
parent | b6fdbb4c0c8f88601aecb348b6f479b3e9c54ca8 (diff) | |
download | python-coveragepy-git-c8ce85ae37236c43c6733b07948abd5d4380e008.tar.gz |
pyratemp somehow claims code came from ''. Fixes #221.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index 115d26c3..80495ef4 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -209,6 +209,10 @@ class coverage(object): should not. """ + if not filename: + # Empty string is pretty useless + return False + if filename.startswith('<'): # Lots of non-file execution is represented with artificial # filenames like "<string>", "<doctest readme.txt[0]>", or |