This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Unify sys.settrace and sys.setprofile tests
Type: enhancement Stage: needs patch
Components: Tests Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: belopolsky, ncoghlan, terry.reedy
Priority: normal Keywords:

Created on 2010-07-28 15:04 by belopolsky, last changed 2022-04-11 14:57 by admin.

Messages (1)
msg111823 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-07-28 15:03
Th sys.settrace and sys.setprofile functions have the same interface an very similar purpose.  The difference is in the types of events that get reported.  However the tests for these functions are implemented separately and cover different sets of scenarios.  As proposed in python-dev thread, "Does trace modules have a unit test?" [1], this RFE proposes to

"""
Create tracetester helper file with abstract test cases made
from the union of test_sys_settrace and  test_sys_setprofile test
cases and replace the concrete test cases in test_sys_set* with
subclasses that define setmethod, getmethod and expected_output.
"""
[1] http://mail.python.org/pipermail/python-dev/2010-July/102308.html

See also issue 9315.
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53644
2016-09-10 18:36:18belopolskysetassignee: belopolsky ->
versions: - Python 3.5
2014-06-30 01:08:47belopolskysetversions: + Python 3.5, - Python 3.1, Python 2.7, Python 3.2, Python 3.3
2013-10-08 13:11:08eli.benderskysetnosy: - eli.bendersky
2011-03-09 02:24:16terry.reedysetnosy: terry.reedy, ncoghlan, belopolsky, eli.bendersky
versions: + Python 3.3
2010-07-28 15:06:18belopolskysetnosy: + terry.reedy, ncoghlan, eli.bendersky
2010-07-28 15:04:00belopolskycreate