Skip to content

Commit 24c83d7

Browse files
authored
Merge pull request #4129 from nicoddemus/merge-master-into-features
Merge master into features (prepare for 3.9)
2 parents ed42ada + 29d5849 commit 24c83d7

File tree

20 files changed

+47
-51
lines changed

20 files changed

+47
-51
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ env:
2525
- TOXENV=py36-numpy
2626
- TOXENV=py36-pluggymaster PYTEST_NO_COVERAGE=1
2727
- TOXENV=py27-nobyte
28-
- TOXENV=doctesting
29-
- TOXENV=docs PYTEST_NO_COVERAGE=1
3028

3129
jobs:
3230
include:
@@ -61,7 +59,7 @@ jobs:
6159
env: TOXENV=py27
6260
- env: TOXENV=py34
6361
- env: TOXENV=py36
64-
- env: TOXENV=linting PYTEST_NO_COVERAGE=1
62+
- env: TOXENV=linting,docs,doctesting PYTEST_NO_COVERAGE=1
6563

6664
- stage: deploy
6765
python: '3.6'

appveyor.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment:
22
matrix:
3-
- TOXENV: "linting"
3+
- TOXENV: "linting,docs,doctesting"
44
PYTEST_NO_COVERAGE: "1"
55
- TOXENV: "py27"
66
- TOXENV: "py34"
@@ -20,11 +20,8 @@ environment:
2020
- TOXENV: "py36-pluggymaster"
2121
PYTEST_NO_COVERAGE: "1"
2222
- TOXENV: "py27-nobyte"
23-
- TOXENV: "doctesting"
2423
- TOXENV: "py36-freeze"
2524
PYTEST_NO_COVERAGE: "1"
26-
- TOXENV: "docs"
27-
PYTEST_NO_COVERAGE: "1"
2825

2926
install:
3027
- echo Installed Pythons

changelog/3713.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update usefixtures documentation to clarify that it can't be used with fixture functions.

changelog/4093.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed formatting of string literals in internal tests.

doc/en/example/assertion/failure_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ class A(object):
245245
a = 1
246246

247247
b = 2
248-
assert A.a == b, (
249-
"A.a appears not to be b\n" "or does not appear to be b\none of those"
250-
)
248+
assert (
249+
A.a == b
250+
), "A.a appears not to be b\nor does not appear to be b\none of those"
251251

252252
def test_custom_repr(self):
253253
class JSON(object):

doc/en/example/reportingdemo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ get on the terminal - we are working on that)::
582582
b = 2
583583
> assert (
584584
A.a == b
585-
), "A.a appears not to be b\n" "or does not appear to be b\none of those"
585+
), "A.a appears not to be b\nor does not appear to be b\none of those"
586586
E AssertionError: A.a appears not to be b
587587
E or does not appear to be b
588588
E one of those

doc/en/reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Mark a test function as using the given fixture names.
178178

179179
.. warning::
180180

181-
This mark can be used with *test functions* only, having no affect when applied
181+
This mark has no effect when applied
182182
to a **fixture** function.
183183

184184
.. py:function:: pytest.mark.usefixtures(*names)

src/_pytest/assertion/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def escape_for_readable_diff(binary_text):
199199
if i > 42:
200200
i -= 10 # Provide some context
201201
explanation = [
202-
u("Skipping %s identical leading " "characters in diff, use -v to show")
202+
u("Skipping %s identical leading characters in diff, use -v to show")
203203
% i
204204
]
205205
left = left[i:]

src/_pytest/cacheprovider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def cacheshow(config, session):
343343
key = valpath.relative_to(vdir)
344344
val = config.cache.get(key, dummy)
345345
if val is dummy:
346-
tw.line("%s contains unreadable content, " "will be ignored" % key)
346+
tw.line("%s contains unreadable content, will be ignored" % key)
347347
else:
348348
tw.line("%s contains:" % key)
349349
for line in pformat(val).splitlines():

src/_pytest/capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def __iter__(self):
654654
return self
655655

656656
def fileno(self):
657-
raise UnsupportedOperation("redirected stdin is pseudofile, " "has no fileno()")
657+
raise UnsupportedOperation("redirected stdin is pseudofile, has no fileno()")
658658

659659
def isatty(self):
660660
return False

0 commit comments

Comments
 (0)