Skip to content

mutilated pytest stack traces #381

Closed
@kkroening

Description

@kkroening

On Python 2.7, stack traces are garbled when using the fs pytest fixture:

test.py:

def test(fs):
    assert 0

bash:

$ virtualenv venv --no-site-packages
$ . venv/bin/activate
(venv) $ pip install pytest pyfakefs
(venv) $ pytest test.py

Output:

_____________________________________ test ______________________________________

fs = <pyfakefs.fake_filesystem.FakeFilesystem object at 0x10efdbc50>

>   ???
E   assert 0

test.py:2: AssertionError

Output without including fs fixture:

_____________________________________ test ______________________________________

    def test():
>       assert 0
E       assert 0

test.py:2: AssertionError

Any ideas? Sorry if this has already been reported somewhere (I couldn't find an issue for it).

Python version: 2.7.14
pip version: 10.0.1
virtualenv version: 15.1.0
pip freeze output:

attrs==17.4.0
funcsigs==1.0.2
more-itertools==4.1.0
pluggy==0.6.0
py==1.5.3
pyfakefs==3.4.1
pytest==3.5.1
six==1.11.0

Thanks,
Karl

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions