summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
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