--- a/DebugClients/Python/coverage/python.py Thu Jan 10 14:23:49 2019 +0100 +++ b/DebugClients/Python/coverage/python.py Sat Feb 02 11:12:54 2019 +0100 @@ -135,7 +135,7 @@ def __init__(self, morf, coverage=None): self.coverage = coverage - if hasattr(morf, '__file__'): + if hasattr(morf, '__file__') and morf.__file__: filename = morf.__file__ elif isinstance(morf, types.ModuleType): # A module should have had .__file__, otherwise we can't use it.