Skip to content

Commit 0976e2f

Browse files
committed
Merge master into features
2 parents 914a946 + 0783030 commit 0976e2f

19 files changed

+97
-18
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
3636

3737
# Full run of latest supported version, without xdist.
38-
- env: TOXENV=py37
38+
# Coverage for:
39+
# - test_sys_breakpoint_interception (via pexpect).
40+
- env: TOXENV=py37-pexpect PYTEST_COVERAGE=1
3941
python: '3.7'
4042

4143
# Coverage tracking is slow with pypy, skip it.
@@ -54,9 +56,6 @@ jobs:
5456
- env: TOXENV=py37-lsof-oldattrs-numpy-twisted-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
5557

5658
# Specialized factors for py37.
57-
# Coverage for:
58-
# - test_sys_breakpoint_interception (via pexpect).
59-
- env: TOXENV=py37-pexpect PYTEST_COVERAGE=1
6059
- env: TOXENV=py37-pluggymaster-xdist
6160
- env: TOXENV=py37-freeze
6261

CHANGELOG.rst

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,33 @@ Bug Fixes
2727
- `#5902 <https://github.com/pytest-dev/pytest/issues/5902>`_: Fix warnings about deprecated ``cmp`` attribute in ``attrs>=19.2``.
2828

2929

30+
pytest 4.6.6 (2019-10-11)
31+
=========================
32+
33+
Bug Fixes
34+
---------
35+
36+
- `#5523 <https://github.com/pytest-dev/pytest/issues/5523>`_: Fixed using multiple short options together in the command-line (for example ``-vs``) in Python 3.8+.
37+
38+
39+
- `#5537 <https://github.com/pytest-dev/pytest/issues/5537>`_: Replace ``importlib_metadata`` backport with ``importlib.metadata`` from the
40+
standard library on Python 3.8+.
41+
42+
43+
- `#5806 <https://github.com/pytest-dev/pytest/issues/5806>`_: Fix "lexer" being used when uploading to bpaste.net from ``--pastebin`` to "text".
44+
45+
46+
- `#5902 <https://github.com/pytest-dev/pytest/issues/5902>`_: Fix warnings about deprecated ``cmp`` attribute in ``attrs>=19.2``.
47+
48+
49+
50+
Trivial/Internal Changes
51+
------------------------
52+
53+
- `#5801 <https://github.com/pytest-dev/pytest/issues/5801>`_: Fixes python version checks (detected by ``flake8-2020``) in case python4 becomes a thing.
54+
55+
56+
3057
pytest 5.2.0 (2019-09-28)
3158
=========================
3259

@@ -214,9 +241,6 @@ Bug Fixes
214241
- `#5477 <https://github.com/pytest-dev/pytest/issues/5477>`_: The XML file produced by ``--junitxml`` now correctly contain a ``<testsuites>`` root element.
215242

216243

217-
- `#5523 <https://github.com/pytest-dev/pytest/issues/5523>`_: Fixed using multiple short options together in the command-line (for example ``-vs``) in Python 3.8+.
218-
219-
220244
- `#5524 <https://github.com/pytest-dev/pytest/issues/5524>`_: Fix issue where ``tmp_path`` and ``tmpdir`` would not remove directories containing files marked as read-only,
221245
which could lead to pytest crashing when executed a second time with the ``--basetemp`` option.
222246

changelog/5946.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types).

doc/en/announce/release-5.2.0.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Thanks to all who contributed to this release, among them:
2929
* Michael Goerz
3030
* Ran Benita
3131
* Tomáš Chvátal
32-
* aklajnert
3332

3433

3534
Happy testing,

doc/en/doctest.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ pytest also introduces new options:
156156
a string! This means that it may not be appropriate to enable globally in
157157
``doctest_optionflags`` in your configuration file.
158158

159+
.. versionadded:: 5.1
160+
159161

160162
Continue on failure
161163
-------------------

doc/en/fixture.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,13 @@ are finalized when the last test of a *package* finishes.
301301
Use this new feature sparingly and please make sure to report any issues you find.
302302

303303

304+
.. _dynamic scope:
305+
304306
Dynamic scope
305307
^^^^^^^^^^^^^
306308

309+
.. versionadded:: 5.2
310+
307311
In some cases, you might want to change the scope of the fixture without changing the code.
308312
To do that, pass a callable to ``scope``. The callable must return a string with a valid scope
309313
and will be executed only once - during the fixture definition. It will be called with two

doc/en/projects.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ Here are some examples of projects using ``pytest`` (please send notes via :ref:
3838
* `execnet <http://codespeak.net/execnet>`_ rapid multi-Python deployment
3939
* `pylib <https://pylib.readthedocs.io/en/stable/>`_ cross-platform path, IO, dynamic code library
4040
* `bbfreeze <https://pypi.org/project/bbfreeze/>`_ create standalone executables from Python scripts
41-
* `pdb++ <http://bitbucket.org/antocuni/pdb>`_ a fancier version of PDB
41+
* `pdb++ <https://github.com/pdbpp/pdbpp>`_ a fancier version of PDB
42+
* `pudb <https://github.com/inducer/pudb>`_ full-screen console debugger for python
4243
* `py-s3fuse <http://code.google.com/p/py-s3fuse/>`_ Amazon S3 FUSE based filesystem
4344
* `waskr <http://code.google.com/p/waskr/>`_ WSGI Stats Middleware
4445
* `guachi <http://code.google.com/p/guachi/>`_ global persistent configs for Python modules

doc/en/py27-py34-deprecation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ branch will continue to exist so the community itself can contribute patches. Th
2424
be happy to accept those patches and make new ``4.6`` releases **until mid-2020**.
2525

2626
.. _`python_requires`: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
27+
28+
Technical Aspects
29+
-----------------
30+
31+
The technical aspects of the Python 2.7 and 3.4 support plan (such as when releases will occurr, how to backport fixes, etc) is described in issue `#5275 <https://github.com/pytest-dev/pytest/issues/5275>`__.

doc/en/talks.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Talks and Tutorials
33
==========================
44

5-
.. sidebar:: Next Open Trainings
6-
7-
- `3 day hands-on workshop covering pytest, tox and devpi: "Professional Testing with Python" <https://python-academy.com/courses/specialtopics/python_course_testing.html>`_ (English), October 21 - 23, 2019, Leipzig, Germany.
8-
95
.. _`funcargs`: funcargs.html
106

117
Books

doc/en/usage.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@ for example ``-x`` if you only want to send one particular failure.
718718
719719
Currently only pasting to the http://bpaste.net service is implemented.
720720

721+
.. versionchanged:: 5.2
722+
723+
If creating the URL fails for any reason, a warning is generated instead of failing the
724+
entire test suite.
725+
721726
Early loading plugins
722727
---------------------
723728

0 commit comments

Comments
 (0)