Skip to content

Commit c14a23d

Browse files
committed
Fix #4093: multiple string literals on a line
1 parent 4b164d9 commit c14a23d

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

doc/en/example/assertion/failure_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class A(object):
246246

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

252252
def test_custom_repr(self):

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

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
@@ -344,7 +344,7 @@ def cacheshow(config, session):
344344
key = valpath.relative_to(vdir)
345345
val = config.cache.get(key, dummy)
346346
if val is dummy:
347-
tw.line("%s contains unreadable content, " "will be ignored" % key)
347+
tw.line("%s contains unreadable content, will be ignored" % key)
348348
else:
349349
tw.line("%s contains:" % key)
350350
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

src/_pytest/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def get_real_func(obj):
275275
obj = new_obj
276276
else:
277277
raise ValueError(
278-
("could not find real function of {start}" "\nstopped at {current}").format(
278+
("could not find real function of {start}\nstopped at {current}").format(
279279
start=py.io.saferepr(start_obj), current=py.io.saferepr(obj)
280280
)
281281
)

src/_pytest/deprecated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
)
6565

6666
COLLECTOR_MAKEITEM = RemovedInPytest4Warning(
67-
"pycollector makeitem was removed " "as it is an accidentially leaked internal api"
67+
"pycollector makeitem was removed as it is an accidentially leaked internal api"
6868
)
6969

7070
METAFUNC_ADD_CALL = RemovedInPytest4Warning(

src/_pytest/helpconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def showhelp(config):
139139
tw.line()
140140
tw.line()
141141
tw.line(
142-
"[pytest] ini-options in the first " "pytest.ini|tox.ini|setup.cfg file found:"
142+
"[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg file found:"
143143
)
144144
tw.line()
145145

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def pytest_addoption(parser):
131131
"python_functions",
132132
type="args",
133133
default=["test"],
134-
help="prefixes or glob names for Python test function and " "method discovery",
134+
help="prefixes or glob names for Python test function and method discovery",
135135
)
136136

137137
group.addoption(

src/_pytest/recwarn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class WarningsChecker(WarningsRecorder):
196196
def __init__(self, expected_warning=None, match_expr=None):
197197
super(WarningsChecker, self).__init__()
198198

199-
msg = "exceptions must be old-style classes or " "derived from Warning, not %s"
199+
msg = "exceptions must be old-style classes or derived from Warning, not %s"
200200
if isinstance(expected_warning, tuple):
201201
for exc in expected_warning:
202202
if not inspect.isclass(exc):

0 commit comments

Comments
 (0)