pytest-dev / pytest-dev/execnet
testing/test_xspec.py::TestMakegateway::test_popen_nice FAILED
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 102
- Forks
- 47
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
- 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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par testing/test_xspec.py::TestMakegateway::test_popen_nice et le chemin makegateway("popen//nice=5") indiqué dans l’échec. Reproduisez le test avec Python 3.5 ou dans l’environnement Debian, examinez comment l’option nice de popen est gérée et vérifiez que le test réussit de manière fiable sans casser le comportement existant de popen.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- distributed-systems, testing
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100