Skip to content

Commit 0f11a7a

Browse files
authored
Merge master into features (#5744)
Merge master into features
2 parents 0822a1e + 1049a38 commit 0f11a7a

30 files changed

+218
-107
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exclude: doc/en/example/py2py3/test_py2.py
22
repos:
3-
- repo: https://github.com/python/black
3+
- repo: https://github.com/psf/black
44
rev: 19.3b0
55
hooks:
66
- id: black

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Short version
167167
#. Enable and install `pre-commit <https://pre-commit.com>`_ to ensure style-guides and code checks are followed.
168168
#. Target ``master`` for bugfixes and doc changes.
169169
#. Target ``features`` for new features or functionality changes.
170-
#. Follow **PEP-8** for naming and `black <https://github.com/python/black>`_ for formatting.
170+
#. Follow **PEP-8** for naming and `black <https://github.com/psf/black>`_ for formatting.
171171
#. Tests are run using ``tox``::
172172

173173
tox -e linting,py37

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:target: https://dev.azure.com/pytest-dev/pytest
2727

2828
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
29-
:target: https://github.com/python/black
29+
:target: https://github.com/psf/black
3030

3131
.. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
3232
:target: https://www.codetriage.com/pytest-dev/pytest

changelog/5115.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Warnings issued during ``pytest_configure`` are explicitly not treated as errors, even if configured as such, because it otherwise completely breaks pytest.

changelog/5669.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add docstring for ``Testdir.copy_example``.

changelog/5701.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix collection of ``staticmethod`` objects defined with ``functools.partial``.

changelog/5734.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Skip async generator test functions, and update the warning message to refer to ``async def`` functions.

doc/en/capture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ is that you can use print statements for debugging:
5757
5858
5959
def setup_function(function):
60-
print("setting up %s" % function)
60+
print("setting up", function)
6161
6262
6363
def test_func1():

doc/en/example/assertion/failure_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_tupleerror(self):
177177

178178
def test_reinterpret_fails_with_print_for_the_fun_of_it(self):
179179
items = [1, 2, 3]
180-
print("items is %r" % items)
180+
print("items is {!r}".format(items))
181181
a, b = items.pop()
182182

183183
def test_some_error(self):

doc/en/example/markers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ specifies via named environments:
384384
envnames = [mark.args[0] for mark in item.iter_markers(name="env")]
385385
if envnames:
386386
if item.config.getoption("-E") not in envnames:
387-
pytest.skip("test requires env in %r" % envnames)
387+
pytest.skip("test requires env in {!r}".format(envnames))
388388
389389
A test file using this local plugin:
390390

@@ -578,7 +578,7 @@ for your particular platform, you could use the following plugin:
578578
supported_platforms = ALL.intersection(mark.name for mark in item.iter_markers())
579579
plat = sys.platform
580580
if supported_platforms and plat not in supported_platforms:
581-
pytest.skip("cannot run on platform %s" % (plat))
581+
pytest.skip("cannot run on platform {}".format(plat))
582582
583583
then tests will be skipped if they were specified for a different platform.
584584
Let's do a little test file to show how this looks like:

0 commit comments

Comments
 (0)