pytest-dev / pytest-dev/execnet
testing/test_xspec.py::TestMakegateway::test_popen_nice FAILED
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 102
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with testing/test_xspec.py::TestMakegateway::test_popen_nice and the makegateway("popen//nice=5") path shown in the failure. Reproduce the test on Python 3.5 or the Debian environment, inspect how the popen nice option is handled, and confirm the test passes reliably without breaking the existing popen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100