[Python-checkins] CVS: python/dist/src/Lib/test test_hotshot.py,1.3,1.4

Fred L. Drake fdrake@users.sourceforge.net
2001年10月18日 12:34:02 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv22760/Lib/test
Modified Files:
	test_hotshot.py 
Log Message:
Do not expect line number events when running under "python -O".
The right fix is to generate line number events anyway ;-), but this will
have to do for now.
Index: test_hotshot.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hotshot.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_hotshot.py	2001年10月13日 03:00:11	1.3
--- test_hotshot.py	2001年10月18日 19:34:00	1.4
***************
*** 54,57 ****
--- 54,60 ----
 def check_events(self, expected):
 events = self.get_events_wotime()
+ if not __debug__:
+ # Running under -O, so we don't get LINE events
+ expected = [ev for ev in expected if ev[0] != LINE]
 if events != expected:
 self.fail(

AltStyle によって変換されたページ (->オリジナル) /