Skip to content

Cannot disable capturing with --dist=distmode #680

@pytestbot

Description

@pytestbot

Originally reported by: Lucas Cimon (BitBucket: LucasC, GitHub: LucasC)


To reproduce this issue, create a file named stupid_test.py with the following code :

def test_unicode():
    print "*[PRINT TO STDOUT]*"
    assert True

Then run the following:

$ py.test -v --capture=no --tx='1*popen' --dist=no stupid_test.py
# -> standard output contains "*[PRINT TO STDOUT]*"
$ py.test -v --capture=no --tx='1*popen' --dist=load stupid_test.py
# -> standard output is captured
$ py.test -v --capture=no --tx='1*popen' --dist=each stupid_test.py
# -> standard output is captured

I'm using the following version:

platform linux2 -- Python 2.7.6 -- py-1.4.26 -- pytest-2.6.4 -- /usr/bin/python

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: xdistrelated to the xdist external plugintype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions