From 2918f8f40127a887514979e96e7c3e91911a67fa Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 23 Aug 2010 23:34:04 -0400 Subject: Add a comment about the wacky object attributes for modules. --- 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 369204d..59d237e 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -163,6 +163,10 @@ class coverage(object): # Only _harvest_data once per measurement cycle. self._harvested = False + # When tearing down the coverage object, modules can become None. + # Saving the modules as object attributes avoids problems, but it is + # quite ad-hoc which modules need to be saved and which references + # need to use the object attributes. self.socket = socket self.os = os self.random = random -- cgit v1.2.1