Cryptic error message if incorrect spec is set on a callable mock

Aberta
#69,499 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
testing-qa

Direção de pesquisa

The issue names Python callable mocks and an incorrect-spec failure, but no file or test. Start by reproducing that case and locating where the cryptic error is produced; done means the failure is clearly reported and regression coverage verifies the improved behavior.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

3.7 (EOL) 3.8 (EOL) 3.9 (EOL) stdlib type-bug
BPO 25312
Nosy @cjw296, @voidspace, @uranusjr, @mariocj89, @tirkarthi

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 2015-10-04.18:07:08.628>
labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
title = 'Cryptic error message if incorrect spec is set on a callable mock'
updated_at = <Date 2019-08-01.05:43:20.709>
user = 'https://github.com/uranusjr'

bugs.python.org fields:

activity = <Date 2019-08-01.05:43:20.709>
actor = 'xtreak'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2015-10-04.18:07:08.628>
creator = 'uranusjr'
dependencies = []
files = []
hgrepos = []
issue_num = 25312
keywords = []
message_count = 2.0
messages = ['252276', '348840']
nosy_count = 5.0
nosy_names = ['cjw296', 'michael.foord', 'uranusjr', 'mariocj89', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue25312'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

Linguagem predominante
Python
Estrelas
77.2k
Forks
36k
Merge médio
1d 9h
PRs com merge (30d)
558

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python/cpython

Todas as issues de python/cpython

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.