Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify sys.settrace and sys.setprofile tests #53644

Closed
abalkin opened this issue Jul 28, 2010 · 2 comments
Closed

Unify sys.settrace and sys.setprofile tests #53644

abalkin opened this issue Jul 28, 2010 · 2 comments
Labels
tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@abalkin
Copy link
Member

abalkin commented Jul 28, 2010

BPO 9398
Nosy @terryjreedy, @ncoghlan, @abalkin

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2010-07-28.15:04:00.980>
labels = ['type-feature', 'tests']
title = 'Unify sys.settrace and sys.setprofile tests'
updated_at = <Date 2016-09-10.18:36:18.310>
user = 'https://github.com/abalkin'

bugs.python.org fields:

activity = <Date 2016-09-10.18:36:18.310>
actor = 'belopolsky'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2010-07-28.15:04:00.980>
creator = 'belopolsky'
dependencies = []
files = []
hgrepos = []
issue_num = 9398
keywords = []
message_count = 1.0
messages = ['111823']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'ncoghlan', 'belopolsky']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue9398'
versions = []

@abalkin
Copy link
Member Author

abalkin commented Jul 28, 2010

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 bpo-9315.

@abalkin abalkin self-assigned this Jul 28, 2010
@abalkin abalkin added tests Tests in the Lib/test dir type-feature A feature request or enhancement labels Jul 28, 2010
@abalkin abalkin removed their assignment Sep 10, 2016
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@kumaraditya303
Copy link
Contributor

The issue is a decade old and has no comments apart from the initial post, the tests have changed since then hence closing, a new issue targeting main can be opened if desired.

@kumaraditya303 kumaraditya303 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants