diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py index 197a7c1..319f56d 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -722,12 +722,9 @@ class Coverage(object): ): self._warn("Module %s has no Python source." % pkg) else: - raise AssertionError( - "Unexpected third case: name = %s, " - "object = %r, " - "__file__ = %s" % ( - pkg, sys.modules[pkg], sys.modules[pkg].__file__ - ) + self._warn( + "Module %s was previously imported, " + "but not measured." % pkg ) # Find out if we got any data. |