Skip to content

unittest: if FunctionTestCase is imported, the loader loads "tests" from it #84867

@abetkin

Description

@abetkin
mannequin
BPO 40690
Nosy @cjerdonek, @remilapeyre, @abetkin
PRs
  • bpo-40690: Check that testcase.__module__ != 'unittest.case' #20237
  • Files
  • test_functiontest.py
  • 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 2020-05-19.20:17:05.761> labels = ['3.8', 'type-bug', 'tests', '3.9', '3.10'] title = 'unittest: if FunctionTestCase is imported, the loader loads "tests" from it' updated_at = <Date 2020-05-27.21:04:36.962> user = 'https://github.com/abetkin'

    bugs.python.org fields:

    activity = <Date 2020-05-27.21:04:36.962> actor = 'remi.lapeyre' assignee = 'none' closed = False closed_date = None closer = None components = ['Tests'] creation = <Date 2020-05-19.20:17:05.761> creator = 'pwtail' dependencies = [] files = ['49196'] hgrepos = [] issue_num = 40690 keywords = ['patch'] message_count = 6.0 messages = ['369386', '369524', '369547', '369571', '369575', '370135'] nosy_count = 3.0 nosy_names = ['chris.jerdonek', 'remi.lapeyre', 'pwtail'] pr_nums = ['20237'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue40690' versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9only security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions