pytest-dev / pytest-dev/execnet

testing/test_xspec.py::TestMakegateway::test_popen_nice FAILED

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
102
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.