mock.patch with autospec does not consume self / cls argument

Aperta
#76,273 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@johnslavik ci sta già lavorando.

Dal 27/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

stdlib type-bug
BPO 32092
Nosy @cjw296, @voidspace, @phmc, @lisroach, @mariocj89, @bclau, @tirkarthi
PRs
  • python/cpython#4476
  • 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-11-20.15:50:21.285>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'mock.patch with autospec does not consume self / cls argument'
    updated_at = <Date 2019-10-28.20:46:16.247>
    user = 'https://github.com/bclau'
    

    bugs.python.org fields:

    activity = <Date 2019-10-28.20:46:16.247>
    actor = 'pconnell'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-11-20.15:50:21.285>
    creator = 'cbelu'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32092
    keywords = ['patch']
    message_count = 2.0
    messages = ['306559', '306560']
    nosy_count = 7.0
    nosy_names = ['cjw296', 'michael.foord', 'pconnell', 'lisroach', 'mariocj89', 'cbelu', 'xtreak']
    pr_nums = ['4476']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32092'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']
    

    Linked PRs
    • gh-146526
    Lingua principale
    Python
    Stelle
    77.2k
    Fork
    36k
    Merge medio
    1g 9h
    PR unite (30g)
    558

    Guida per i contributori

    Apri la guida per i contributori

    Come iniziare

    1. Leggi tutta la issue e poi la guida ai contributi del progetto.
    2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
    3. Fai un fork del repository e lavora su un branch.
    4. Apri una pull request che faccia riferimento al numero della issue.

    Altre issue di python/cpython

    Tutte le issue di python/cpython

    Issue simili

    Altre issue su Python

    Ricevi le nuove issue nella tua casella

    Un breve riepilogo di issue GitHub adatte ai principianti.