[Zope-Checkins] CVS: Zope3/utilities - unittestgui.py:1.1.2.2

Fred Drake Jr fdrake@acm.org
Tue, 20 Nov 2001 10:46:04 -0500


Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv6376

Modified Files:
      Tag: Zope-3x-branch
	unittestgui.py 
Log Message:
Make sure the source text in tracebacks is correct when re-running the
tests.  This has been submitted to the PyUnit project as SF patch #483824.


=== Zope3/utilities/unittestgui.py 1.1.2.1 => 1.1.2.2 ===
 __version__ = "$Revision$"[11:-2]
 
+import linecache
 import unittest
 import sys
 import Tkinter
@@ -158,6 +159,7 @@
             if not self.previousModules.has_key(modname):
                 # Force reload when modname next imported
                 del(sys.modules[modname])
+        linecache.checkcache()
 
 
 ##############################################################################