Skip to content

Write unit tests for pdb module #73784

Closed as not planned
Closed as not planned

Description

@micgeronimo
BPO 29598
Nosy @methane, @xdegaye, @serhiy-storchaka, @micgeronimo, @isidentical
PRs
  • bpo-29598 Add couple of unit tests for pdb module #218
  • 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 2017-02-19.09:49:40.599>
    labels = ['3.7', 'tests']
    title = 'Write unit tests for pdb module'
    updated_at = <Date 2019-11-30.16:37:13.325>
    user = 'https://github.com/micgeronimo'

    bugs.python.org fields:

    activity = <Date 2019-11-30.16:37:13.325>
    actor = 'BTaskaya'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2017-02-19.09:49:40.599>
    creator = 'Artem Muterko'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29598
    keywords = []
    message_count = 6.0
    messages = ['288123', '288126', '288349', '288459', '288593', '357659']
    nosy_count = 5.0
    nosy_names = ['methane', 'xdegaye', 'serhiy.storchaka', 'Artem Muterko', 'BTaskaya']
    pr_nums = ['218']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue29598'
    versions = ['Python 3.7']

    Activity

    1. micgeronimo commented on Feb 19, 2017

      micgeronimomannequin
      MannequinAuthor

      I want to write unit tests for pdb module of stdlib. Should I create one pull request for entire module or should I split work into several pull requests?

    2. xdegaye commented on Feb 19, 2017

      xdegayemannequin
      Mannequin

      Please use one single PR only when the tests are focused on a single topic and can be collected in their own class. When the tests are focused on breakpoints for example.

    3. serhiy-storchaka commented on Feb 22, 2017

      @serhiy-storchaka
      Member

      It would be better to move all tests for internal functions in separate TestCase class. It should be clear that this is testing of implementation details and we are free to change tests when change the implementation.

      There are some tests for find_function(). They should be moved too. Note that there is a bug in find_function() (it opens a file with default encoding).

      Tests for internal functions don't free us from testing the same functionality as a part of high level functions.

    4. xdegaye commented on Feb 23, 2017

      xdegayemannequin
      Mannequin

      Note that there is a bug in find_function() (it opens a file with default encoding).

      Please open an issue.

    5. serhiy-storchaka commented on Feb 26, 2017

      @serhiy-storchaka
      Member

      And decorate this test class with test.support.cpython_only.

    6. isidentical commented on Nov 30, 2019

      @isidentical
      SponsorMember

      PR 218 is closed and this issue looks like just created for that PR. If that PR is closed and there are nothing to do with this issue, maybe this can also be closed?

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetestsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions