Skip to content

Commit c9a85b0

Browse files
committed
Fix linting
1 parent d132257 commit c9a85b0

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

changelog/4093.trivial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The incorrect string literals are fixed.
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\nor 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):

src/_pytest/terminal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,7 @@ def repr_pythonversion(v=None):
835835

836836

837837
def build_summary_stats_line(stats):
838-
keys = (
839-
"failed passed skipped deselected xfailed xpassed warnings error"
840-
).split()
838+
keys = ("failed passed skipped deselected xfailed xpassed warnings error").split()
841839
unknown_key_seen = False
842840
for key in stats.keys():
843841
if key not in keys:

testing/test_pdb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ def test_1():
281281
assert False
282282
"""
283283
)
284-
child = testdir.spawn_pytest(
285-
"--show-capture=all --pdb -p no:logging %s" % p1
286-
)
284+
child = testdir.spawn_pytest("--show-capture=all --pdb -p no:logging %s" % p1)
287285
child.expect("get rekt")
288286
output = child.before.decode("utf8")
289287
assert "captured log" not in output

0 commit comments

Comments
 (0)