python / python/cpython

Stop test_ssl from changing environment

Aberta
#131,305 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

tests topic-SSL type-bug
Linguagem predominante
Python
Estrelas
77.2k
Forks
36k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

On my Win10, buildt yesterday and today, py -m test and py -m test test_ssl sometimes (>50%) changes the environment, which is a failure for the whole suite (test alone).

0:01:43 load avg: 2.28 [466/485/1] test_ssl failed (env changed) (31.1 sec) -
Warning -- warnings.filters was modified by test_ssl
Warning --   Before: (2199023321584, [], [])
Warning --   After:  (2199661512208, [('always', None, <class 'ResourceWarning'>, None, 0)], [('always', None, <class 'ResourceWarning'>, None, 0)])

About 5 runs with -v added don't show this, though there are a few hundred lines of output with several ssl error tracebacks that do not cause a test failure.

Might just be my machine if no CI errors.

EDIT: py ran installed 3.14.0a5. Just reran twice with today's buld with python ... to run the build and got the same. Install is norma + gil. Build is debug no-gil.

Installed new 3.14.0a6 and ran 5 times without failure. I rechecked and my python build with the problem is post-release 3.14.0a6+.

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.

Direção de pesquisa

Comece executando py -m test test_ssl e a suíte completa de testes py -m test no build Windows debug no-GIL reportado, comparando as execuções com e sem -v. Investigue a alteração de ambiente de warnings.filters reportada e os tracebacks de erro de ssl; considera-se concluído quando execuções repetidas não relatarem mais test_ssl failed (env changed).

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

Avaliação

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

Receba novas issues na sua caixa de entrada

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