From c8ce85ae37236c43c6733b07948abd5d4380e008 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 13 Dec 2012 21:13:32 -0500 Subject: pyratemp somehow claims code came from ''. Fixes #221. --- coverage/control.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/control.py') 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 "", "", or -- cgit v1.2.1