Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge features into master #4172

Merged
merged 142 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
d12f46c
Merge pull request #3949 from nicoddemus/merge-master-into-features
RonnyPfannschmidt Sep 7, 2018
ab40696
-W now takes precedence over filters in ini files
nicoddemus Sep 6, 2018
53c9124
Merge pull request #3947 from nicoddemus/warnings-filter-precedence
nicoddemus Sep 13, 2018
495a557
Separate deprecations and removals in the CHANGELOG
nicoddemus Sep 13, 2018
bf074b3
Show deprecation warnings for compat properties
nicoddemus Sep 13, 2018
482bd5e
Show deprecation warning for cached_setup
nicoddemus Sep 13, 2018
b7dd915
Deprecate custom node types during collection by using special names
nicoddemus Sep 13, 2018
feb8240
Use self.Function again during collection
nicoddemus Sep 13, 2018
32ee0b9
Move warning messages to _pytest.deprecated
nicoddemus Sep 13, 2018
da6830f
Introduce UnformattedWarning to keep warning types and messages in _p…
nicoddemus Sep 14, 2018
ae8f369
Move UnformattedWarning to _pytest.warning_types
nicoddemus Sep 14, 2018
bceaede
Merge pull request #3978 from nicoddemus/warn-yield-and-compat-proper…
RonnyPfannschmidt Sep 15, 2018
05155e4
Fail at parametrize option for empty parameter set
andrea-cimatoribus-pix4d Sep 12, 2018
4a9f468
Update documentation
sambarluc Sep 12, 2018
913c07e
Add changelog file and new author
sambarluc Sep 12, 2018
a79dc12
Merge pull request #3970 from sambarluc/raise_on_empty_parameterset
nicoddemus Sep 18, 2018
e967d45
Add support for logging in collection-phase
twmr Sep 14, 2018
d1a3aa7
Update 3964.rst
twmr Sep 18, 2018
0483428
Add testcase for logging to file
twmr Sep 18, 2018
18cc74b
Remove useless comment
twmr Sep 19, 2018
83802d1
Merge pull request #3986 from thisch/fb3964
twmr Sep 19, 2018
c301847
Show deprecation warnings even if filters are customized
nicoddemus Sep 22, 2018
56d0b5a
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Sep 22, 2018
42afce2
Merge pull request #4019 from nicoddemus/deprecation-warnings-4013
nicoddemus Sep 22, 2018
fcc5b6d
Add "deprecation" to possible changelog entries in pre-commit
nicoddemus Sep 22, 2018
e03a19f
Merge pull request #4021 from nicoddemus/merge-master-into-features
RonnyPfannschmidt Sep 23, 2018
0d04aa7
Add 3.9 deprecated features to deprecations.rst
nicoddemus Sep 22, 2018
5d8467b
Merge pull request #4023 from nicoddemus/deprecated-3.9
RonnyPfannschmidt Sep 23, 2018
1101a20
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Oct 2, 2018
29d3fae
Merge pull request #4068 from nicoddemus/merge-master-into-features
RonnyPfannschmidt Oct 3, 2018
96b2ae6
Initial pass at timeout for subprocessing pytest
altendky Oct 4, 2018
870a93c
Actually construct TimeoutExpired
altendky Oct 4, 2018
fe7050b
Fix lint
nicoddemus Oct 4, 2018
d290695
monotonic.monotonic() -> time.time()
altendky Oct 5, 2018
d5e5433
Add descriptive message for timeout
altendky Oct 5, 2018
33f0338
kill and wait for subprocess before raising TimeoutExpired
altendky Oct 5, 2018
dcd635b
Correct timeout to check every so often
altendky Oct 5, 2018
0d095fc
Up timeout to 1 second for test
altendky Oct 5, 2018
900cef6
Use signal.alarm() for py2 timeout
altendky Oct 5, 2018
dd225e1
Tidy getting of timeout from kwargs
altendky Oct 5, 2018
dcf9eb0
Raise an exception on unexpected kwargs
altendky Oct 5, 2018
5c38a51
Slight diff tidy
altendky Oct 5, 2018
f3a173b
Revert "Use signal.alarm() for py2 timeout"
altendky Oct 5, 2018
42422a7
Throw away arbitrary args to runpytest_subprocess()
altendky Oct 5, 2018
8e0e862
Stretch out the time assertion for slow AppVeyor
altendky Oct 5, 2018
ee64f1f
Add changelog file for 4073
altendky Oct 5, 2018
ed5556b
Add to docstrings
altendky Oct 5, 2018
20902de
Add Kyle Altendorf to AUTHORS
altendky Oct 5, 2018
5ecbb0a
Correct new changelog to have newline at end
altendky Oct 5, 2018
4b36f9a
Tidy timeout checking
altendky Oct 5, 2018
ccaec8d
__tracebackhide__ = True
altendky Oct 7, 2018
48dcc67
Increase timeout in test_testdir_run_with_timeout to decrease false f…
altendky Oct 7, 2018
a6fb4c8
Merge pull request #4078 from altendky/4073-altendky-subprocessing_ti…
altendky Oct 7, 2018
4071c8a
Correct timing in test_pytester.test_testdir_run_with_timeout()
altendky Oct 8, 2018
b895816
Merge pull request #4092 from altendky/4073-altendky-subprocessing_ti…
blueyed Oct 9, 2018
9a3836a
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Oct 9, 2018
943bbdd
Merge pull request #4100 from nicoddemus/merge-master-into-features
asottile Oct 10, 2018
aeb92ac
Implement pytest.deprecated_call with pytest.warns
asottile Oct 10, 2018
d93de6c
Fix trailing whitespace in FixtureDef.__repr__
blueyed Oct 10, 2018
e0f6fce
In python2, display previously warned warnings
asottile Oct 10, 2018
b8fc3e5
pytester: fix __tracebackhide__ for {re_,fn}match_lines
blueyed Oct 10, 2018
4c9015c
Merge pull request #4105 from blueyed/repr
blueyed Oct 10, 2018
602e74c
Merge pull request #4107 from blueyed/__tracebackhide__
blueyed Oct 10, 2018
52ff1ea
_getconftestmodules: optimize
blueyed Oct 10, 2018
67f40e1
Use attr.s(repr=False) because we customize MarkInfo's repr
nicoddemus Oct 10, 2018
5436e42
Use pytest.fail(..., pytrace=False) when treating user errors
nicoddemus Oct 3, 2018
bf265a4
Minor adjustments found during code review
nicoddemus Oct 10, 2018
b48e23d
port interals of tmpdir to a basic pathlib implementation
RonnyPfannschmidt Sep 15, 2018
2e39fd8
add python27 support by using reduce instead of max
RonnyPfannschmidt Sep 16, 2018
d053cdf
factor out max and iterate on locks and cleanups
RonnyPfannschmidt Sep 18, 2018
8e00280
fix linting
RonnyPfannschmidt Sep 19, 2018
66a6909
bring in purepath and fix an assertion
RonnyPfannschmidt Sep 19, 2018
ab3637d
implement cleanup for unlocked folders
RonnyPfannschmidt Sep 20, 2018
8b4a293
fix typo
RonnyPfannschmidt Sep 21, 2018
b3a5b0e
remove path from exposure
RonnyPfannschmidt Sep 26, 2018
642cd86
shape up removal and lock destruction
RonnyPfannschmidt Sep 26, 2018
2532dc1
fix up lock consideration argument
RonnyPfannschmidt Sep 27, 2018
d76fa59
fix lock timeouts for good this time
RonnyPfannschmidt Sep 28, 2018
fed4f73
ignore rmtree errors
RonnyPfannschmidt Sep 28, 2018
85cc9b8
move all the things into _pytest.pathlib
RonnyPfannschmidt Sep 29, 2018
0071617
fix missed Path import
RonnyPfannschmidt Sep 29, 2018
2831cb9
unify paths.py and pathlib.py
RonnyPfannschmidt Oct 1, 2018
3036914
sort out rmtree expectations
RonnyPfannschmidt Oct 1, 2018
ad6f63e
add changelog
RonnyPfannschmidt Oct 1, 2018
4a436b5
resolve in code review commments
RonnyPfannschmidt Oct 2, 2018
b82d6f7
pytester: use per test tmproot
RonnyPfannschmidt Oct 2, 2018
94829c3
make tmpdir env cleanup idempotent
RonnyPfannschmidt Oct 2, 2018
ebd597b
use the constant for lock timeouts
RonnyPfannschmidt Oct 2, 2018
36c2a10
add missing docstring
RonnyPfannschmidt Oct 2, 2018
16e2737
implement tmp_path_factory and deprecate pytest.ensuretemp as intended
RonnyPfannschmidt Oct 11, 2018
584051a
extend docs with basics about tmp_path and tmp_path_facotry
RonnyPfannschmidt Oct 11, 2018
b394066
Merge pull request #4103 from blueyed/conftest
blueyed Oct 11, 2018
8ecdd4e
Merge pull request #4104 from asottile/deprecated_call_match
asottile Oct 11, 2018
4736b2b
address review comments
RonnyPfannschmidt Oct 11, 2018
e8348a1
Merge pull request #4077 from nicoddemus/short-usage-errors
nicoddemus Oct 12, 2018
933de16
Merge pull request #3988 from RonnyPfannschmidt/tmpdir-port-pathlib
nicoddemus Oct 12, 2018
36dc671
New ExceptionInfo.getrepr 'chain' parameter to be able to suppress ch…
nicoddemus Oct 12, 2018
8e11fe5
Improve tracebacks for ImportErrors in conftest.py files
nicoddemus Oct 12, 2018
2cb3534
Move filter_traceback to _pytest._code
nicoddemus Oct 12, 2018
ef97121
Removed unused ConftestImportFailure.__str__ method
nicoddemus Oct 12, 2018
307fa7a
tox.ini: use testpaths, cleanup other pytest options
blueyed Sep 19, 2018
29d5849
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Oct 13, 2018
e266710
Merge pull request #4126 from blueyed/testpaths
blueyed Oct 13, 2018
ed42ada
Merge pull request #4124 from nicoddemus/traceback-import-error-3332
nicoddemus Oct 13, 2018
24c83d7
Merge pull request #4129 from nicoddemus/merge-master-into-features
nicoddemus Oct 13, 2018
7268462
Resolve symlinks for args
blueyed Oct 10, 2018
5322f42
Merge pull request #4108 from blueyed/realpath
blueyed Oct 14, 2018
323c846
tox.ini: fix testpaths
blueyed Oct 14, 2018
0be84cd
Merge pull request #4141 from blueyed/testpaths-fix
blueyed Oct 14, 2018
d7be039
Add returncode argument to pytest.exit
cacoze Oct 14, 2018
ce55dcf
Add test for calling pytest.exit with statuscode
cacoze Oct 14, 2018
a066635
Update changelog
cacoze Oct 14, 2018
1dfa303
fix #4135 - handle symlinks in tmp path cleanup
RonnyPfannschmidt Oct 14, 2018
46d6a3f
Pass returncode to Error exception when creating instance
cacoze Oct 14, 2018
836c9f8
Set test session exitstatus value from Exit excetion return code
cacoze Oct 14, 2018
766d2da
Update returncode exit test to check exitstatus returrned from test s…
cacoze Oct 14, 2018
d4351ac
modernize packaging for setuptools>30.3
RonnyPfannschmidt Oct 14, 2018
d4dfd52
Update pytest.exit docstring
cacoze Oct 14, 2018
bbd1cbb
Update changelog to better reading
cacoze Oct 14, 2018
ced62f3
Attempt to create symlinks even on Windows, skipping when not possible
nicoddemus Oct 14, 2018
d32f2c5
Change Exit.__init__ params order to keep backward compatibility
cacoze Oct 14, 2018
76fb997
Check if returncode is not None before assigning test return code
cacoze Oct 14, 2018
40091ec
Update pytest.exit docstring
cacoze Oct 14, 2018
27d932e
Fix order of parameters when raising Exit exception
cacoze Oct 14, 2018
5b0f887
Merge pull request #4148 from RonnyPfannschmidt/pathlib-cleanup-symli…
RonnyPfannschmidt Oct 15, 2018
7855284
move most setuptools parameters over to setup.cfg
RonnyPfannschmidt Oct 15, 2018
d65c765
changelog
RonnyPfannschmidt Oct 15, 2018
141c51f
Merge pull request #4145 from labcodes/4098
crazymerlyn Oct 15, 2018
58b6e86
Merge pull request #4149 from RonnyPfannschmidt/modern-build
nicoddemus Oct 15, 2018
9646a1c
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Oct 15, 2018
e8c220b
Increase required verbosity level for debug output
twmr Oct 15, 2018
e4e4fd1
Merge pull request #4158 from nicoddemus/merge-master-into-features
nicoddemus Oct 15, 2018
39a13d7
Fix tmp_path example in docs
nicoddemus Oct 15, 2018
2868c31
Preparing release version 3.9.0
nicoddemus Oct 15, 2018
54b8ad4
Merge pull request #4159 from thisch/subclassedfile
nicoddemus Oct 16, 2018
456715a
fix url quotes in setup.cfg metadata
RonnyPfannschmidt Oct 16, 2018
2c00f8a
Merge pull request #4170 from RonnyPfannschmidt/fix-metadata-url-quotes
nicoddemus Oct 16, 2018
c4550bc
Merge branch 'release-3.9.0' of github.com:nicoddemus/pytest into rel…
RonnyPfannschmidt Oct 16, 2018
253c578
Preparing release version 3.9.1
RonnyPfannschmidt Oct 16, 2018
c5bbf8a
make note about the unpublished 3.9.0 release
RonnyPfannschmidt Oct 16, 2018
7931b5b
Merge pull request #4171 from RonnyPfannschmidt/release-3.9.1
nicoddemus Oct 16, 2018
ee0a306
Merge remote-tracking branch 'upstream/features' into merge-features-…
nicoddemus Oct 16, 2018
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
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ repos:
- id: check-yaml
- id: debug-statements
exclude: _pytest/debugging.py
language_version: python3
- id: flake8
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v1.8.0
hooks:
Expand All @@ -41,6 +43,6 @@ repos:
- id: changelogs-rst
name: changelog filenames
language: fail
entry: 'changelog files must be named ####.(feature|bugfix|doc|removal|vendor|trivial).rst'
exclude: changelog/(\d+\.(feature|bugfix|doc|removal|vendor|trivial).rst|README.rst|_template.rst)
entry: 'changelog files must be named ####.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst'
exclude: changelog/(\d+\.(feature|bugfix|doc|deprecation|removal|vendor|trivial).rst|README.rst|_template.rst)
files: ^changelog/
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Allan Feldman
Anatoly Bubenkoff
Anders Hovmöller
Andras Tim
Andrea Cimatoribus
Andreas Zeidler
Andrzej Ostrowski
Andy Freeland
Expand Down Expand Up @@ -120,6 +121,7 @@ Katerina Koukiou
Kevin Cox
Kodi B. Arfer
Kostis Anagnostopoulos
Kyle Altendorf
Lawrence Mitchell
Lee Kamentsky
Lev Maximov
Expand Down
157 changes: 157 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,163 @@ with advance notice in the **Deprecations** section of releases.

.. towncrier release notes start

pytest 3.9.1 (2018-10-16)
=========================

Features
--------

- `#4159 <https://github.com/pytest-dev/pytest/issues/4159>`_: For test-suites containing test classes, the information about the subclassed
module is now output only if a higher verbosity level is specified (at least
"-vv").


pytest 3.9.0 (2018-10-15 - not published due to a release automation bug)
=========================================================================

Deprecations
------------

- `#3616 <https://github.com/pytest-dev/pytest/issues/3616>`_: The following accesses have been documented as deprecated for years, but are now actually emitting deprecation warnings.

* Access of ``Module``, ``Function``, ``Class``, ``Instance``, ``File`` and ``Item`` through ``Node`` instances. Now
users will this warning::

usage of Function.Module is deprecated, please use pytest.Module instead

Users should just ``import pytest`` and access those objects using the ``pytest`` module.

* ``request.cached_setup``, this was the precursor of the setup/teardown mechanism available to fixtures. You can
consult `funcarg comparision section in the docs <https://docs.pytest.org/en/latest/funcarg_compare.html>`_.

* Using objects named ``"Class"`` as a way to customize the type of nodes that are collected in ``Collector``
subclasses has been deprecated. Users instead should use ``pytest_collect_make_item`` to customize node types during
collection.

This issue should affect only advanced plugins who create new collection types, so if you see this warning
message please contact the authors so they can change the code.

* The warning that produces the message below has changed to ``RemovedInPytest4Warning``::

getfuncargvalue is deprecated, use getfixturevalue


- `#3988 <https://github.com/pytest-dev/pytest/issues/3988>`_: Add a Deprecation warning for pytest.ensuretemp as it was deprecated since a while.



Features
--------

- `#2293 <https://github.com/pytest-dev/pytest/issues/2293>`_: Improve usage errors messages by hiding internal details which can be distracting and noisy.

This has the side effect that some error conditions that previously raised generic errors (such as
``ValueError`` for unregistered marks) are now raising ``Failed`` exceptions.


- `#3332 <https://github.com/pytest-dev/pytest/issues/3332>`_: Improve the error displayed when a ``conftest.py`` file could not be imported.

In order to implement this, a new ``chain`` parameter was added to ``ExceptionInfo.getrepr``
to show or hide chained tracebacks in Python 3 (defaults to ``True``).


- `#3849 <https://github.com/pytest-dev/pytest/issues/3849>`_: Add ``empty_parameter_set_mark=fail_at_collect`` ini option for raising an exception when parametrize collects an empty set.


- `#3964 <https://github.com/pytest-dev/pytest/issues/3964>`_: Log messages generated in the collection phase are shown when
live-logging is enabled and/or when they are logged to a file.


- `#3985 <https://github.com/pytest-dev/pytest/issues/3985>`_: Introduce ``tmp_path`` as a fixture providing a Path object.


- `#4013 <https://github.com/pytest-dev/pytest/issues/4013>`_: Deprecation warnings are now shown even if you customize the warnings filters yourself. In the previous version
any customization would override pytest's filters and deprecation warnings would fall back to being hidden by default.


- `#4073 <https://github.com/pytest-dev/pytest/issues/4073>`_: Allow specification of timeout for ``Testdir.runpytest_subprocess()`` and ``Testdir.run()``.


- `#4098 <https://github.com/pytest-dev/pytest/issues/4098>`_: Add returncode argument to pytest.exit() to exit pytest with a specific return code.


- `#4102 <https://github.com/pytest-dev/pytest/issues/4102>`_: Reimplement ``pytest.deprecated_call`` using ``pytest.warns`` so it supports the ``match='...'`` keyword argument.

This has the side effect that ``pytest.deprecated_call`` now raises ``pytest.fail.Exception`` instead
of ``AssertionError``.


- `#4149 <https://github.com/pytest-dev/pytest/issues/4149>`_: Require setuptools>=30.3 and move most of the metadata to ``setup.cfg``.



Bug Fixes
---------

- `#2535 <https://github.com/pytest-dev/pytest/issues/2535>`_: Improve error message when test functions of ``unittest.TestCase`` subclasses use a parametrized fixture.


- `#3057 <https://github.com/pytest-dev/pytest/issues/3057>`_: ``request.fixturenames`` now correctly returns the name of fixtures created by ``request.getfixturevalue()``.


- `#3946 <https://github.com/pytest-dev/pytest/issues/3946>`_: Warning filters passed as command line options using ``-W`` now take precedence over filters defined in ``ini``
configuration files.


- `#4066 <https://github.com/pytest-dev/pytest/issues/4066>`_: Fix source reindenting by using ``textwrap.dedent`` directly.


- `#4102 <https://github.com/pytest-dev/pytest/issues/4102>`_: ``pytest.warn`` will capture previously-warned warnings in Python 2. Previously they were never raised.


- `#4108 <https://github.com/pytest-dev/pytest/issues/4108>`_: Resolve symbolic links for args.

This fixes running ``pytest tests/test_foo.py::test_bar``, where ``tests``
is a symlink to ``project/app/tests``:
previously ``project/app/conftest.py`` would be ignored for fixtures then.


- `#4132 <https://github.com/pytest-dev/pytest/issues/4132>`_: Fix duplicate printing of internal errors when using ``--pdb``.


- `#4135 <https://github.com/pytest-dev/pytest/issues/4135>`_: pathlib based tmpdir cleanup now correctly handles symlinks in the folder.


- `#4152 <https://github.com/pytest-dev/pytest/issues/4152>`_: Display the filename when encountering ``SyntaxWarning``.



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

- `#3713 <https://github.com/pytest-dev/pytest/issues/3713>`_: Update usefixtures documentation to clarify that it can't be used with fixture functions.


- `#4058 <https://github.com/pytest-dev/pytest/issues/4058>`_: Update fixture documentation to specify that a fixture can be invoked twice in the scope it's defined for.


- `#4064 <https://github.com/pytest-dev/pytest/issues/4064>`_: According to unittest.rst, setUpModule and tearDownModule were not implemented, but it turns out they are. So updated the documentation for unittest.


- `#4151 <https://github.com/pytest-dev/pytest/issues/4151>`_: Add tempir testing example to CONTRIBUTING.rst guide



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

- `#2293 <https://github.com/pytest-dev/pytest/issues/2293>`_: The internal ``MarkerError`` exception has been removed.


- `#3988 <https://github.com/pytest-dev/pytest/issues/3988>`_: Port the implementation of tmpdir to pathlib.


- `#4063 <https://github.com/pytest-dev/pytest/issues/4063>`_: Exclude 0.00 second entries from ``--duration`` output unless ``-vv`` is passed on the command-line.


- `#4093 <https://github.com/pytest-dev/pytest/issues/4093>`_: Fixed formatting of string literals in internal tests.


pytest 3.8.2 (2018-10-02)
=========================

Expand Down
1 change: 0 additions & 1 deletion changelog/2535.bugfix.rst

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

3 changes: 2 additions & 1 deletion changelog/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Each file should be named like ``<ISSUE>.<TYPE>.rst``, where
* ``feature``: new user facing features, like new command-line options and new behavior.
* ``bugfix``: fixes a reported bug.
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
* ``removal``: feature deprecation or removal.
* ``deprecation``: feature deprecation.
* ``removal``: feature removal.
* ``vendor``: changes in packages vendored in pytest.
* ``trivial``: fixing a small typo or internal change that might be noteworthy.

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


release-3.9.1
release-3.9.0
release-3.8.2
release-3.8.1
release-3.8.0
Expand Down
43 changes: 43 additions & 0 deletions doc/en/announce/release-3.9.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
pytest-3.9.0
=======================================

The pytest team is proud to announce the 3.9.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:

* Andrea Cimatoribus
* Ankit Goel
* Anthony Sottile
* Ben Eyal
* Bruno Oliveira
* Daniel Hahler
* Jeffrey Rackauckas
* Jose Carlos Menezes
* Kyle Altendorf
* Niklas JQ
* Palash Chatterjee
* Ronny Pfannschmidt
* Thomas Hess
* Thomas Hisch
* Tomer Keren
* Victor Maryama


Happy testing,
The Pytest Development Team
20 changes: 20 additions & 0 deletions doc/en/announce/release-3.9.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pytest-3.9.1
=======================================

pytest 3.9.1 has just been released to PyPI.

This is a bug-fix release, being a drop-in replacement. To upgrade::

pip install --upgrade pytest

The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.

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

* Bruno Oliveira
* Ronny Pfannschmidt
* Thomas Hisch


Happy testing,
The pytest Development Team
14 changes: 13 additions & 1 deletion doc/en/builtin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
See http://docs.python.org/library/warnings.html for information
on warning categories.
tmpdir_factory
Return a TempdirFactory instance for the test session.
Return a :class:`_pytest.tmpdir.TempdirFactory` instance for the test session.
tmp_path_factory
Return a :class:`_pytest.tmpdir.TempPathFactory` instance for the test session.
tmpdir
Return a temporary directory path object
which is unique to each test function invocation,
Expand All @@ -113,6 +115,16 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
path object.

.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html
tmp_path
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 :class:`pathlib.Path`
object.

.. note::

in python < 3.6 this is a pathlib2.Path

no tests ran in 0.12 seconds

Expand Down
Loading