Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
b9561e2
Merge pull request #4808 from nicoddemus/merge-master-into-features
nicoddemus Feb 19, 2019
0ca1f6e
Merge branch 'fix-new-pluggy' into merge-master-into-features
nicoddemus Feb 22, 2019
63e7f8e
Merge pull request #4817 from nicoddemus/merge-master-into-features
blueyed Feb 23, 2019
dc8c270
AppVeyor: drop pluggymaster
blueyed Feb 13, 2019
ede6387
Require funcsigs>=1.0 on Python 2.7
nicoddemus Feb 24, 2019
759d7fd
Merge pull request #4786 from blueyed/av
nicoddemus Feb 24, 2019
a020727
-p option now can be used to early-load plugins by entry-point name
nicoddemus Feb 7, 2019
c9e6943
Merge pull request #4822 from nicoddemus/funcsigs
asottile Feb 24, 2019
2cf1de3
Merge pull request #4727 from nicoddemus/early-load-4718
nicoddemus Feb 25, 2019
29112d7
Merge master into features
blueyed Feb 26, 2019
c7bbb2a
Merge pull request #4833 from blueyed/merge-master
blueyed Feb 26, 2019
a868a9a
pdb: validate --pdbcls option
blueyed Feb 28, 2019
9cb71af
_pytest.assertion.rewrite: move _format_explanation import
blueyed Mar 1, 2019
42561db
Merge pull request #4863 from blueyed/remove-import
blueyed Mar 1, 2019
f7a3e00
pdb: allow for --pdbclass=mod:attr.class
blueyed Feb 28, 2019
84555c8
Merge pull request #4855 from blueyed/pdbcls-attr
nicoddemus Mar 1, 2019
db5cc35
pytester: unset PYTEST_ADDOPTS
blueyed Feb 28, 2019
44c9407
Merge pull request #4868 from blueyed/pytester-unset-PYTEST_ADDOPTS
nicoddemus Mar 1, 2019
2d2f6cd
cacheprovider: _ensure_supporting_files: remove unused branches
blueyed Mar 1, 2019
e1f97e4
Merge pull request #4872 from blueyed/_ensure_supporting_files
blueyed Mar 2, 2019
7dceabf
Ensure fixtures obtained with getfixturevalue() are finalized in the …
nicoddemus Feb 28, 2019
525639e
Rename fixtures testing file to be consistent with the module name
nicoddemus Feb 28, 2019
d97473e
Add test and CHANGELOG for #1895
nicoddemus Feb 28, 2019
6a2d122
Remove code debugging leftovers
nicoddemus Mar 2, 2019
53b8aa0
Show testpaths option in the header if it has been used for collection
nicoddemus Mar 2, 2019
0deb7b1
Do not show "inifile:" string if there's no configuration file
nicoddemus Mar 2, 2019
35c85f0
Merge pull request #4876 from nicoddemus/show-testpaths-in-header-4875
nicoddemus Mar 2, 2019
c334adc
Apply suggestions from code review
blueyed Mar 3, 2019
23ea04f
Merge pull request #4860 from nicoddemus/getfixturevalue-cleanup-1895
nicoddemus Mar 3, 2019
7668703
Merge branch 'master' into merge-master-into-features
blueyed Mar 5, 2019
4668ee0
Merge pull request #4887 from blueyed/merge-master-into-features
blueyed Mar 5, 2019
c86d2da
pytester: remove unused anypython fixture
blueyed Feb 28, 2019
936f725
Merge pull request #4890 from blueyed/dead
nicoddemus Mar 6, 2019
47bd168
Remove dead-code related to yield tests
nicoddemus Feb 25, 2019
148e6a3
Improve coverage
nicoddemus Mar 6, 2019
b7ae7a6
Remove callspec related block of code
nicoddemus Mar 6, 2019
9059722
Merge pull request #4829 from nicoddemus/yield-tests-dead-code
nicoddemus Mar 13, 2019
4d21dc4
Optimize TracebackEntry.ishidden
blueyed Mar 13, 2019
951e07d
Merge pull request #4919 from blueyed/opt
blueyed Mar 14, 2019
520af9d
pdb: post_mortem: use super()
blueyed Mar 14, 2019
40072b9
Emit a warning when a async def function is not handled by a plugin
nicoddemus Feb 25, 2019
437ff1c
Merge pull request #4925 from blueyed/pm-super
blueyed Mar 14, 2019
7afe177
Merge master into features
blueyed Mar 14, 2019
5c57d92
Merge pull request #4926 from blueyed/merge-master-into-features
nicoddemus Mar 15, 2019
43aee15
Make pytest.skip work in doctest
tkf Mar 15, 2019
fa3cca5
Test pytest.skip in doctest
tkf Mar 15, 2019
62f96ee
Include documentation
tkf Mar 15, 2019
57be1d6
Apply suggestions from code review
blueyed Mar 15, 2019
9570156
Update src/_pytest/outcomes.py
blueyed Mar 15, 2019
5f52d5e
Merge pull request #4927 from tkf/skip-doctest
asottile Mar 15, 2019
33d4c96
Merge pull request #4830 from nicoddemus/warn-on-coroutine
nicoddemus Mar 15, 2019
5e27ea5
pytester: LineMatcher: assert Sequence when matching in order
blueyed Mar 15, 2019
c1e01c2
Merge pull request #4931 from blueyed/linematcher-list
blueyed Mar 15, 2019
15fe8c6
Handle `-p plug` after `-p no:plug`.
blueyed Mar 16, 2019
5d14362
Merge pull request #4936 from blueyed/use-blocked-plugin
nicoddemus Mar 16, 2019
c75dd10
pytester: testdir: set $HOME to tmpdir
blueyed Mar 18, 2019
a624b84
Merge pull request #4941 from blueyed/testdir-home
blueyed Mar 18, 2019
751c061
Merge master into features
blueyed Mar 19, 2019
920bffb
Revisit _pytest.capture: repr, doc fixes, minor
blueyed Mar 18, 2019
7395501
Easier read with _colorama_workaround/_readline_workaround
blueyed Mar 18, 2019
77c5191
Merge pull request #4953 from blueyed/merge-master-into-features
blueyed Mar 19, 2019
1a119a2
Internal refactorings in order to support the new pytest-subtests plugin
nicoddemus Mar 6, 2019
23ab432
Merge pull request #4920 from nicoddemus/subtests-pytest-1367
nicoddemus Mar 19, 2019
da81c1e
Merge pull request #4950 from blueyed/capture
blueyed Mar 20, 2019
a50b92e
pytester: set HOME only with inline_run/popen
blueyed Mar 19, 2019
8dda561
Merge pull request #4956 from blueyed/home2
blueyed Mar 20, 2019
415899d
config: handle `-p no:plugin` with default plugins
blueyed Mar 20, 2019
c7c120f
terminal: handle "capture" option not being available
blueyed Mar 20, 2019
f717103
terminal: remove unnecessary check in _get_progress_information_message
blueyed Mar 20, 2019
7939e53
Merge pull request #4957 from blueyed/config-handle-pno-with-default-…
blueyed Mar 20, 2019
bcdbb6b
Revisit mkdir/_ensure_supporting_files in cacheprovider
blueyed Mar 20, 2019
832cef9
Merge pull request #4964 from blueyed/mkdir
blueyed Mar 20, 2019
cc6e5ec
tests: add test_report_collect_after_half_a_second
blueyed Mar 20, 2019
15ef168
Merge pull request #4962 from blueyed/test_report_collect_after_half_…
nicoddemus Mar 20, 2019
553951c
Fix some issues related to "-p no:X" with default_plugins
blueyed Mar 21, 2019
0e6cf0f
Merge pull request #4967 from blueyed/p-no-default
blueyed Mar 21, 2019
ea2c6b8
config: fix consider_preparse with missing argument to -p
blueyed Mar 21, 2019
15d6088
Merge pull request #4966 from blueyed/fix-preparse
blueyed Mar 21, 2019
ea7357b
ci: PYTEST_ADDOPTS=-vv in general
blueyed Feb 27, 2019
2e7d6a6
Fix test_assertrewrite in verbose mode
blueyed Mar 18, 2019
5a544d4
tox.ini: usedevelop implies skipsdist
blueyed Nov 19, 2018
5c26ba9
minor: wrap_session: s/Spurious/unexpected/
blueyed Dec 10, 2018
ade7733
minor: rename inner test
blueyed Mar 4, 2019
8e125c9
doc/en/reference.rst: whitespace/alignment
blueyed Mar 16, 2019
7a6bcc3
Add reference to test_cmdline_python_namespace_package
blueyed Mar 22, 2019
4751199
monkeypatch.syspath_prepend: call fixup_namespace_packages
blueyed Mar 22, 2019
05d55b8
tests: minor sys.path cleanup
blueyed Mar 22, 2019
5df45f5
Use fixup_namespace_packages also with pytester.syspathinsert
blueyed Mar 22, 2019
56dc01f
minor: revisit _possibly_invalidate_import_caches
blueyed Mar 22, 2019
fd64fa1
Revisit test_importplugin_error_message
blueyed Mar 22, 2019
afa985c
Revisit coverage in some tests
blueyed Mar 22, 2019
2d690b8
ExceptionInfo.from_current: assert current exception
blueyed Mar 22, 2019
08f3b02
tests: fnmatch_lines: use list
blueyed Mar 23, 2019
aa0b657
Add Session.__repr__
blueyed Mar 24, 2019
6352cf2
test_implicit_bad_repr1: harden/cleanup
blueyed Mar 24, 2019
d44e42e
doc: improve warning_record_to_str
blueyed Mar 24, 2019
7da7b96
minor: whitespace
blueyed Mar 24, 2019
ce59f42
revisit test_root_logger_affected
blueyed Mar 24, 2019
5efe6ab
test_log_cli_auto_enable: get stdout once
blueyed Mar 24, 2019
de44293
CollectError.repr_failure: honor explicit tbstyle option
blueyed Mar 23, 2019
4142c41
Merge pull request #4990 from blueyed/session-repr
blueyed Mar 24, 2019
2df9d05
Merge pull request #4982 from blueyed/cover
blueyed Mar 25, 2019
51f64c2
Merge pull request #4980 from blueyed/fixup_namespace_packages
blueyed Mar 25, 2019
b53bf44
Merge pull request #4985 from blueyed/assert-from_current
blueyed Mar 25, 2019
58a14b6
Merge pull request #4986 from blueyed/fnmatch_lines-list
blueyed Mar 25, 2019
6eff306
Merge pull request #4851 from blueyed/addopts-vv
blueyed Mar 25, 2019
0c63f99
Add experimental _to_json and _from_json to TestReport and CollectReport
nicoddemus Mar 20, 2019
7b9a414
Add pytest_report_serialize and pytest_report_unserialize hooks
nicoddemus Mar 20, 2019
d856f4e
Make sure TestReports are not collected as test classes
nicoddemus Mar 21, 2019
f2e0c74
Code review suggestions
nicoddemus Mar 21, 2019
6457742
Add CHANGELOG
nicoddemus Mar 21, 2019
e4eec34
Note that tests from xdist reference the correct xdist issues
nicoddemus Mar 25, 2019
ceef0af
Improve coverage for to_json() with paths in reports
nicoddemus Mar 25, 2019
2d77018
Improve coverage for _report_unserialization_failure
nicoddemus Mar 25, 2019
4148663
Merge pull request #4979 from blueyed/minor
blueyed Mar 26, 2019
b18df93
changelog
blueyed Mar 26, 2019
23146e7
Fix usages of "verbose" option
blueyed Mar 22, 2019
0d00be4
Do not swallow outcomes.Exit in assertrepr_compare
blueyed Mar 22, 2019
e1ae469
Merge master into features
blueyed Mar 26, 2019
ee96214
Merge pull request #5000 from blueyed/merge-master-into-features
nicoddemus Mar 26, 2019
94a2e3d
stepwise: report status via pytest_report_collectionfinish
blueyed Mar 24, 2019
351529c
skipping: factor out _get_pos, pass only config to _get_report_str
blueyed Mar 26, 2019
9311d82
Fix assertion in pytest_report_unserialize
nicoddemus Mar 26, 2019
538efef
logging: close log_file_handler
blueyed Mar 23, 2019
52730f6
doc: fix note about output capturing with pdb
blueyed Mar 26, 2019
49f36bb
Merge pull request #4988 from blueyed/logging-close
blueyed Mar 26, 2019
02188e3
Merge pull request #4987 from blueyed/collect-tbstyle-repr_failure
nicoddemus Mar 26, 2019
057c978
Merge pull request #4975 from blueyed/verbose-fixes
nicoddemus Mar 26, 2019
241b743
Merge pull request #4978 from blueyed/exit-from-from_assertrepr_compare
nicoddemus Mar 26, 2019
69a55d3
Merge pull request #5004 from blueyed/doc-pdb
nicoddemus Mar 26, 2019
cf6e2ce
add ini option to disable string escape for parametrization
ApaDoctor Oct 11, 2017
8b0b715
Fix glitches of original patch of disable-test-id-escaping
youknowone Mar 24, 2019
3d9e68e
Update doc/en/parametrize.rst
nicoddemus Mar 27, 2019
76c70cb
Fix off-by-one error with lineno in mark collection error
blueyed Mar 26, 2019
6c602c2
Merge pull request #4995 from youknowone/disble_test_id_escaping
nicoddemus Mar 27, 2019
50a5ceb
Merge pull request #5002 from blueyed/report
blueyed Mar 27, 2019
c92021f
Merge pull request #5003 from blueyed/off
blueyed Mar 27, 2019
d406786
pdb: handle capturing with fixtures only
blueyed Mar 18, 2019
40718ef
Fix/revisit do_continue with regard to conditions
blueyed Mar 18, 2019
ae067df
add test_pdb_continue_with_recursive_debug
blueyed Mar 19, 2019
951213e
Use new suspend/resume in global_and_fixture_disabled
blueyed Mar 19, 2019
d532099
test_pdb_continue_with_recursive_debug: mock pdb.set_trace
blueyed Mar 19, 2019
63a01bd
Factor out pytestPDB._is_capturing
blueyed Mar 20, 2019
46d9243
changelog
blueyed Mar 28, 2019
65c8e8a
Rename hooks: to/from_serializable
nicoddemus Mar 28, 2019
a9fe1e1
Merge pull request #4965 from nicoddemus/serialization-hooks
nicoddemus Mar 28, 2019
d8ef86a
Merge pull request #4993 from blueyed/stepwise-report
nicoddemus Mar 28, 2019
6b5cddc
Merge pull request #4951 from blueyed/fix-pdb-capfix
nicoddemus Mar 28, 2019
bfda2a0
setup.cfg: use existing [tool:pytest] (ignoring [pytest])
blueyed Mar 27, 2019
4011021
pdb: do not raise outcomes.Exit with quit in debug
blueyed Mar 21, 2019
4e931b2
Merge master into features
blueyed Mar 29, 2019
dee520e
Merge pull request #5008 from blueyed/setup-cfg-tool-pytest
blueyed Mar 29, 2019
e7ade06
Merge pull request #5011 from blueyed/merge-master-into-features
blueyed Mar 29, 2019
278b289
Merge pull request #4968 from blueyed/pdb-do_debug-quit
nicoddemus Mar 29, 2019
8881b20
Preparing release version 4.4.0
nicoddemus Mar 29, 2019
4621638
Update CHANGELOG.rst
blueyed Mar 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ stages:
if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
if: repo = pytest-dev/pytest AND tag IS present
python:
- '3.7'
python: '3.7'
cache: false

env:
global:
- PYTEST_ADDOPTS=-vv

install:
- python -m pip install --upgrade --pre tox

Expand Down Expand Up @@ -57,7 +62,8 @@ jobs:
# - pytester's LsofFdLeakChecker
# - TestArgComplete (linux only)
# - numpy
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1
# Empty PYTEST_ADDOPTS to run this non-verbose.
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=

# Specialized factors for py27.
- env: TOXENV=py27-nobyte-numpy-xdist
Expand Down Expand Up @@ -147,4 +153,3 @@ notifications:
skip_join: true
email:
- pytest-commit@python.org
cache: false
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ Steffen Allner
Stephan Obermann
Sven-Hendrik Haase
Tadek Teleżyński
Takafumi Arakaki
Tarcisio Fischer
Tareq Alayan
Ted Xiao
Expand All @@ -241,6 +242,7 @@ Vidar T. Fauske
Virgil Dupras
Vitaly Lashmanov
Vlad Dragos
Volodymyr Piskun
Wil Cooley
William Lee
Wim Glenn
Expand Down
158 changes: 158 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,164 @@ with advance notice in the **Deprecations** section of releases.

.. towncrier release notes start

pytest 4.4.0 (2019-03-29)
=========================

Features
--------

- `#2224 <https://github.com/pytest-dev/pytest/issues/2224>`_: ``async`` test functions are skipped and a warning is emitted when a suitable
async plugin is not installed (such as ``pytest-asyncio`` or ``pytest-trio``).

Previously ``async`` functions would not execute at all but still be marked as "passed".


- `#2482 <https://github.com/pytest-dev/pytest/issues/2482>`_: Include new ``disable_test_id_escaping_and_forfeit_all_rights_to_community_support`` option to disable ascii-escaping in parametrized values. This may cause a series of problems and as the name makes clear, use at your own risk.


- `#4718 <https://github.com/pytest-dev/pytest/issues/4718>`_: The ``-p`` option can now be used to early-load plugins also by entry-point name, instead of just
by module name.

This makes it possible to early load external plugins like ``pytest-cov`` in the command-line::

pytest -p pytest_cov


- `#4855 <https://github.com/pytest-dev/pytest/issues/4855>`_: The ``--pdbcls`` option handles classes via module attributes now (e.g.
``pdb:pdb.Pdb`` with `pdb++`_), and its validation was improved.

.. _pdb++: https://pypi.org/project/pdbpp/


- `#4875 <https://github.com/pytest-dev/pytest/issues/4875>`_: The `testpaths <https://docs.pytest.org/en/latest/reference.html#confval-testpaths>`__ configuration option is now displayed next
to the ``rootdir`` and ``inifile`` lines in the pytest header if the option is in effect, i.e., directories or file names were
not explicitly passed in the command line.

Also, ``inifile`` is only displayed if there's a configuration file, instead of an empty ``inifile:`` string.


- `#4911 <https://github.com/pytest-dev/pytest/issues/4911>`_: Doctests can be skipped now dynamically using ``pytest.skip()``.


- `#4920 <https://github.com/pytest-dev/pytest/issues/4920>`_: Internal refactorings have been made in order to make the implementation of the
`pytest-subtests <https://github.com/pytest-dev/pytest-subtests>`__ plugin
possible, which adds unittest sub-test support and a new ``subtests`` fixture as discussed in
`#1367 <https://github.com/pytest-dev/pytest/issues/1367>`__.

For details on the internal refactorings, please see the details on the related PR.


- `#4931 <https://github.com/pytest-dev/pytest/issues/4931>`_: pytester's ``LineMatcher`` asserts that the passed lines are a sequence.


- `#4936 <https://github.com/pytest-dev/pytest/issues/4936>`_: Handle ``-p plug`` after ``-p no:plug``.

This can be used to override a blocked plugin (e.g. in "addopts") from the
command line etc.


- `#4951 <https://github.com/pytest-dev/pytest/issues/4951>`_: Output capturing is handled correctly when only capturing via fixtures (capsys, capfs) with ``pdb.set_trace()``.


- `#4956 <https://github.com/pytest-dev/pytest/issues/4956>`_: ``pytester`` sets ``$HOME`` and ``$USERPROFILE`` to the temporary directory during test runs.

This ensures to not load configuration files from the real user's home directory.


- `#4980 <https://github.com/pytest-dev/pytest/issues/4980>`_: Namespace packages are handled better with ``monkeypatch.syspath_prepend`` and ``testdir.syspathinsert`` (via ``pkg_resources.fixup_namespace_packages``).


- `#4993 <https://github.com/pytest-dev/pytest/issues/4993>`_: The stepwise plugin reports status information now.


- `#5008 <https://github.com/pytest-dev/pytest/issues/5008>`_: If a ``setup.cfg`` file contains ``[tool:pytest]`` and also the no longer supported ``[pytest]`` section, pytest will use ``[tool:pytest]`` ignoring ``[pytest]``. Previously it would unconditionally error out.

This makes it simpler for plugins to support old pytest versions.



Bug Fixes
---------

- `#1895 <https://github.com/pytest-dev/pytest/issues/1895>`_: Fix bug where fixtures requested dynamically via ``request.getfixturevalue()`` might be teardown
before the requesting fixture.


- `#4851 <https://github.com/pytest-dev/pytest/issues/4851>`_: pytester unsets ``PYTEST_ADDOPTS`` now to not use outer options with ``testdir.runpytest()``.


- `#4903 <https://github.com/pytest-dev/pytest/issues/4903>`_: Use the correct modified time for years after 2038 in rewritten ``.pyc`` files.


- `#4928 <https://github.com/pytest-dev/pytest/issues/4928>`_: Fix line offsets with ``ScopeMismatch`` errors.


- `#4957 <https://github.com/pytest-dev/pytest/issues/4957>`_: ``-p no:plugin`` is handled correctly for default (internal) plugins now, e.g. with ``-p no:capture``.

Previously they were loaded (imported) always, making e.g. the ``capfd`` fixture available.


- `#4968 <https://github.com/pytest-dev/pytest/issues/4968>`_: The pdb ``quit`` command is handled properly when used after the ``debug`` command with `pdb++`_.

.. _pdb++: https://pypi.org/project/pdbpp/


- `#4975 <https://github.com/pytest-dev/pytest/issues/4975>`_: Fix the interpretation of ``-qq`` option where it was being considered as ``-v`` instead.


- `#4978 <https://github.com/pytest-dev/pytest/issues/4978>`_: ``outcomes.Exit`` is not swallowed in ``assertrepr_compare`` anymore.


- `#4988 <https://github.com/pytest-dev/pytest/issues/4988>`_: Close logging's file handler explicitly when the session finishes.


- `#5003 <https://github.com/pytest-dev/pytest/issues/5003>`_: Fix line offset with mark collection error (off by one).



Improved Documentation
----------------------

- `#4974 <https://github.com/pytest-dev/pytest/issues/4974>`_: Update docs for ``pytest_cmdline_parse`` hook to note availability liminations



Trivial/Internal Changes
------------------------

- `#4718 <https://github.com/pytest-dev/pytest/issues/4718>`_: ``pluggy>=0.9`` is now required.


- `#4815 <https://github.com/pytest-dev/pytest/issues/4815>`_: ``funcsigs>=1.0`` is now required for Python 2.7.


- `#4829 <https://github.com/pytest-dev/pytest/issues/4829>`_: Some left-over internal code related to ``yield`` tests has been removed.


- `#4890 <https://github.com/pytest-dev/pytest/issues/4890>`_: Remove internally unused ``anypython`` fixture from the pytester plugin.


- `#4912 <https://github.com/pytest-dev/pytest/issues/4912>`_: Remove deprecated Sphinx directive, ``add_description_unit()``,
pin sphinx-removed-in to >= 0.2.0 to support Sphinx 2.0.


- `#4913 <https://github.com/pytest-dev/pytest/issues/4913>`_: Fix pytest tests invocation with custom ``PYTHONPATH``.


- `#4965 <https://github.com/pytest-dev/pytest/issues/4965>`_: New ``pytest_report_to_serializable`` and ``pytest_report_from_serializable`` **experimental** hooks.

These hooks will be used by ``pytest-xdist``, ``pytest-subtests``, and the replacement for
resultlog to serialize and customize reports.

They are experimental, meaning that their details might change or even be removed
completely in future patch releases without warning.

Feedback is welcome from plugin authors and users alike.


- `#4987 <https://github.com/pytest-dev/pytest/issues/4987>`_: ``Collector.repr_failure`` respects the ``--tb`` option, but only defaults to ``short`` now (with ``auto``).


pytest 4.3.1 (2019-03-11)
=========================

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ trigger:
- features

variables:
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml"
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv"
python.needs_vc: False
python.exe: "python"
COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage"
Expand Down
1 change: 0 additions & 1 deletion changelog/4903.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4912.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4913.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4928.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4974.doc.rst

This file was deleted.

1 change: 1 addition & 0 deletions doc/en/announce/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2


release-4.4.0
release-4.3.1
release-4.3.0
release-4.2.1
Expand Down
39 changes: 39 additions & 0 deletions doc/en/announce/release-4.4.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pytest-4.4.0
=======================================

The pytest team is proud to announce the 4.4.0 release!

pytest is a mature Python testing tool with more than a 2000 tests
against itself, passing on many different interpreters and platforms.

This release contains a number of bugs fixes and improvements, so users are encouraged
to take a look at the CHANGELOG:

https://docs.pytest.org/en/latest/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/latest/

As usual, you can upgrade from pypi via:

pip install -U pytest

Thanks to all who contributed to this release, among them:

* Anthony Sottile
* ApaDoctor
* Bernhard M. Wiedemann
* Brian Skinn
* Bruno Oliveira
* Daniel Hahler
* Gary Tyler
* Jeong YunWon
* Miro Hrončok
* Takafumi Arakaki
* henrykironde
* smheidrich


Happy testing,
The Pytest Development Team
4 changes: 2 additions & 2 deletions doc/en/assert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ you will see the return value of the function call:
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR, inifile:
rootdir: $REGENDOC_TMPDIR
collected 1 item
test_assert1.py F [100%]
Expand Down Expand Up @@ -165,7 +165,7 @@ if you run this module:
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR, inifile:
rootdir: $REGENDOC_TMPDIR
collected 1 item
test_assert2.py F [100%]
Expand Down
38 changes: 21 additions & 17 deletions doc/en/builtin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,29 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a

Values can be any object handled by the json stdlib module.
capsys
Enable capturing of writes to ``sys.stdout`` and ``sys.stderr`` and make
captured output available via ``capsys.readouterr()`` method calls
which return a ``(out, err)`` namedtuple. ``out`` and ``err`` will be ``text``
objects.
Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.

The captured output is made available via ``capsys.readouterr()`` method
calls, which return a ``(out, err)`` namedtuple.
``out`` and ``err`` will be ``text`` objects.
capsysbinary
Enable capturing of writes to ``sys.stdout`` and ``sys.stderr`` and make
captured output available via ``capsys.readouterr()`` method calls
which return a ``(out, err)`` tuple. ``out`` and ``err`` will be ``bytes``
objects.
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.

The captured output is made available via ``capsysbinary.readouterr()``
method calls, which return a ``(out, err)`` namedtuple.
``out`` and ``err`` will be ``bytes`` objects.
capfd
Enable capturing of writes to file descriptors ``1`` and ``2`` and make
captured output available via ``capfd.readouterr()`` method calls
which return a ``(out, err)`` tuple. ``out`` and ``err`` will be ``text``
objects.
Enable text capturing of writes to file descriptors ``1`` and ``2``.

The captured output is made available via ``capfd.readouterr()`` method
calls, which return a ``(out, err)`` namedtuple.
``out`` and ``err`` will be ``text`` objects.
capfdbinary
Enable capturing of write to file descriptors 1 and 2 and make
captured output available via ``capfdbinary.readouterr`` method calls
which return a ``(out, err)`` tuple. ``out`` and ``err`` will be
``bytes`` objects.
Enable bytes capturing of writes to file descriptors ``1`` and ``2``.

The captured output is made available via ``capfd.readouterr()`` method
calls, which return a ``(out, err)`` namedtuple.
``out`` and ``err`` will be ``byte`` objects.
doctest_namespace
Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
pytestconfig
Expand All @@ -55,7 +59,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
Example::

def test_foo(pytestconfig):
if pytestconfig.getoption("verbose"):
if pytestconfig.getoption("verbose") > 0:
...
record_property
Add an extra properties the calling test.
Expand Down
Loading