Skip to content

unittest.mock: test_create_autospec_unbound_methods is skipped #61748

Closed

Description

@vstinner
BPO 17548
Nosy @vstinner, @ezio-melotti, @voidspace

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 = <Date 2015-10-02.21:10:37.336>
created_at = <Date 2013-03-25.23:58:28.339>
labels = ['tests', 'library']
title = 'unittest.mock: test_create_autospec_unbound_methods is skipped'
updated_at = <Date 2015-10-02.21:10:37.335>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2015-10-02.21:10:37.335>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2015-10-02.21:10:37.336>
closer = 'vstinner'
components = ['Library (Lib)', 'Tests']
creation = <Date 2013-03-25.23:58:28.339>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 17548
keywords = []
message_count = 3.0
messages = ['185249', '185253', '223794']
nosy_count = 4.0
nosy_names = ['vstinner', 'ezio.melotti', 'michael.foord', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue17548'
versions = ['Python 3.4', 'Python 3.5']

Activity

  1. vstinner commented on Mar 25, 2013

    @vstinner
    MemberAuthor

    While working on bpo-17516, I saw that test_create_autospec_unbound_methods() of Lib/unittest/test/testmock/testhelpers.py is skipped:

        def test_create_autospec_unbound_methods(self):
            # see mock issue 128
            # this is expected to fail until the issue is fixed
            return

    Related entry in mock bug tracker:
    http://code.google.com/p/mock/issues/detail?id=128

    If it is not necessary to duplicate the issue here, please just close it.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    testsTests in the Lib/test dir
    on Mar 25, 2013
  3. vstinner commented on Mar 26, 2013

    @vstinner
    MemberAuthor

    Oh, there is another skipped test in Lib/unittest/test/testmock/testpatch.py:

        def test_patch_descriptor(self):
            # would be some effort to fix this - we could special case the
            # builtin descriptors: classmethod, property, staticmethod
            return
  4. BreamoreBoy commented on Jul 23, 2014

    BreamoreBoymannequin
    Mannequin

    Both of these tests are still commented out in the default branch.

  5. 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

    stdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions