-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Hi, I just stumbled over this behaviour when calling 'pytest --fixtures-per-test' in the pytest repo with a fresh venv on 3.6:
pytest --fixtures-per-test
[...]
-------------------------------------------------------- fixtures used by test_source_of_class_at_eof_without_newline --------------------------------------------------------
--------------------------------------------------------------------- (testing/code/test_source.py:395) ----------------------------------------------------------------------
tmpdir
Return a temporary directory path object
which is unique to each test function invocation,
created as a sub directory of the base temporary
directory. The returned object is a `py.path.local`_
path object.
tmpdir_factory
Return a TempdirFactory instance for the test session.
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/oliver/.virtualenvs/tmp/lib/python3.6/site-packages/_pytest/main.py", line 110, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/home/oliver/.virtualenvs/tmp/lib/python3.6/site-packages/_pytest/python.py", line 1025, in _show_fixtures_per_test
INTERNALERROR> write_item(item)
INTERNALERROR> File "/home/oliver/.virtualenvs/tmp/lib/python3.6/site-packages/_pytest/python.py", line 1006, in write_item
INTERNALERROR> name2fixturedefs = item._fixtureinfo.name2fixturedefs
INTERNALERROR> AttributeError: 'DoctestItem' object has no attribute '_fixtureinfo'
python --version
Python 3.6.2
$ uname -av
Linux ob1 4.12.13-1-ARCH #1 SMP PREEMPT Fri Sep 15 06:36:43 UTC 2017 x86_64 GNU/Linux
piplist
Package Version
---------- -------
pip 9.0.1
py 1.4.34
pytest 3.2.2
setuptools 36.5.0
wheel 0.30.0
pytest --version
This is pytest version 3.2.2, imported from /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/pytest.py
setuptools registered plugins:
pytest-xdist-1.20.0 at /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/xdist/plugin.py
pytest-xdist-1.20.0 at /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/xdist/looponfail.py
pytest-timeout-1.2.0 at /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/pytest_timeout.py
pytest-forked-0.2 at /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/pytest_forked/__init__.py
pytest-cov-2.5.1 at /home/oliver/.virtualenvs/tox/lib/python3.6/site-packages/pytest_cov/plugin.py
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed