[Python-checkins] python/dist/src/Lib/test test_hotshot.py,1.6,1.7

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年7月17日 09:12:56 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv10955
Modified Files:
	test_hotshot.py 
Log Message:
Add a test for the 'closed' attribute on the C-profiler object.
Index: test_hotshot.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hotshot.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_hotshot.py	8 Feb 2002 21:29:22 -0000	1.6
--- test_hotshot.py	17 Jul 2002 16:12:53 -0000	1.7
***************
*** 64,69 ****
--- 64,72 ----
 if profiler is None:
 profiler = self.new_profiler()
+ self.failUnless(not profiler._prof.closed)
 profiler.runcall(callable)
+ self.failUnless(not profiler._prof.closed)
 profiler.close()
+ self.failUnless(profiler._prof.closed)
 self.check_events(events)
 

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