[Python-checkins] python/dist/src/Lib/test test_hotshot.py,1.12,1.13

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 15 Aug 2002 19:27:17 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv15549/python/lib/test

Modified Files:
	test_hotshot.py 
Log Message:
check_events():  This was failing under -O, due to not expecting any
LINE events when not __debug__.  But we get them anyway under -O now,
so just stop special-casing non-__debug__ mode.


Index: test_hotshot.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hotshot.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_hotshot.py	15 Aug 2002 14:59:01 -0000	1.12
--- test_hotshot.py	16 Aug 2002 02:27:15 -0000	1.13
***************
*** 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(
--- 54,57 ----