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

Fred L. Drake fdrake@users.sourceforge.net
Fri, 08 Feb 2002 13:31:49 -0800


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

Modified Files:
      Tag: release22-maint
	test_hotshot.py 
Log Message:
Added regression test for start()/stop() returning bogus NULL.

Index: test_hotshot.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hotshot.py,v
retrieving revision 1.5
retrieving revision 1.5.8.1
diff -C2 -d -r1.5 -r1.5.8.1
*** test_hotshot.py	29 Oct 2001 20:54:01 -0000	1.5
--- test_hotshot.py	8 Feb 2002 21:31:47 -0000	1.5.8.1
***************
*** 99,102 ****
--- 99,112 ----
          self.run_test(g, events, self.new_profiler(lineevents=1))
  
+     def test_start_stop(self):
+         # Make sure we don't return NULL in the start() and stop()
+         # methods when there isn't an error.  Bug in 2.2 noted by
+         # Anthony Baxter.
+         profiler = self.new_profiler()
+         profiler.start()
+         profiler.stop()
+         profiler.close()
+         os.unlink(self.logfn)
+ 
  
  def test_main():