pytest-dev / pytest-dev/execnet
testing/test_xspec.py::TestMakegateway::test_popen_nice FAILED
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 102
- Forks
- 47
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
- Bitbucket: https://bitbucket.org/hpk42/execnet/issue/54
- Originally reported by: @danstender
- Originally created at: 2017-03-19T18:20:53.165
Another test failure from Debian packaging. This one belongs to the same class as #53 (randomly appearing).
testing/test_xspec.py::TestMakegateway::test_popen_nice FAILED
=================================== FAILURES ===================================
_______________________ TestMakegateway.test_popen_nice ________________________
self = <test_xspec.TestMakegateway object at 0x7f57cbff97b8>
makegateway = <bound method Group.makegateway of <Group ['gw1']>>
@pytest.mark.skipif("not hasattr(os, 'nice')")
def test_popen_nice(self, makegateway):
gw = makegateway("popen")
def getnice(channel):
import os
if hasattr(os, 'nice'):
channel.send(os.nice(0))
else:
channel.send(None)
remotenice = gw.remote_exec(getnice).receive()
gw.exit()
if remotenice is not None:
gw = makegateway("popen//nice=5")
remotenice2 = gw.remote_exec(getnice).receive()
> assert remotenice2 == remotenice + 5
E assert 0 == (0 + 5)
testing/test_xspec.py:136: AssertionError
This one comes up when testing on Python 3.5. Build log: https://people.debian.org/~sanvila/build-logs/execnet/execnet_1.4.1-3_amd64-20170207T152032Z.
Thanks for hints,
DS
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza con testing/test_xspec.py::TestMakegateway::test_popen_nice y la ruta makegateway("popen//nice=5") mostrada en el fallo. Reproduce el test en Python 3.5 o en el entorno Debian, inspecciona cómo se gestiona la opción nice de popen y confirma que el test pasa de forma fiable sin romper el comportamiento existente de popen.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- distributed-systems, testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100