summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_hotshot.py
Commit message (Collapse)AuthorAgeFilesLines
* check_events(): This was failing under -O, due to not expecting anyTim Peters2002-08-161-3/+0
| | | | | LINE events when not __debug__. But we get them anyway under -O now, so just stop special-casing non-__debug__ mode.
* This is my patchMichael W. Hudson2002-08-151-2/+0
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* We only need to check for StopIteration here.Fred Drake2002-08-051-1/+1
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Gave hotshot.LogReader a close() method, to allow users to close theTim Peters2002-07-181-4/+1
| | | | | file object that LogReader opens. Used it then in test_hotshot; the test passes again on Windows. Thank Guido for the analysis.
* test_hotshot fails on Windows now. Added XXX comment explaining why,Tim Peters2002-07-171-0/+4
| | | | and that I don't know how to fix it. Fred?
* Add a test for the 'closed' attribute on the C-profiler object.Guido van Rossum2002-07-171-0/+3
|
* Added regression test for start()/stop() returning bogus NULL.Fred Drake2002-02-081-0/+10
|
* Add a test for the insertion of user-provided ADD_INFO records.Fred Drake2001-10-291-2/+12
|
* Do not expect line number events when running under "python -O".Fred Drake2001-10-181-0/+3
| | | | | The right fix is to generate line number events anyway ;-), but this will have to do for now.
* Remove some unused imports.Fred Drake2001-10-131-4/+17
| | | | | | Remove the log file after we are done with it. This should clean up after the test even on Windows, since the file is now closed before we attempt removal.
* You can't unlink open files on Windows.Tim Peters2001-10-131-1/+1
| | | | | | Simply commented it out, and then test_hotshot passes on Windows. Leaving to Fred to fix "the right way" (it seems to be a feature of unittest that all unittests try to unlink open files <wink>).
* A most trivial test for HotShot -- make sure we get reasonable eventsFred Drake2001-10-121-0/+81
reported and can read the log back in.