Fix linting
This commit is contained in:
parent
d1322570dd
commit
c9a85b0e78
|
@ -1 +1 @@
|
|||
The incorrect string literals are fixed.
|
||||
Fixed formatting of string literals in internal tests.
|
||||
|
|
|
@ -245,9 +245,9 @@ class TestCustomAssertMsg(object):
|
|||
a = 1
|
||||
|
||||
b = 2
|
||||
assert A.a == b, (
|
||||
"A.a appears not to be b\nor does not appear to be b\none of those"
|
||||
)
|
||||
assert (
|
||||
A.a == b
|
||||
), "A.a appears not to be b\nor does not appear to be b\none of those"
|
||||
|
||||
def test_custom_repr(self):
|
||||
class JSON(object):
|
||||
|
|
|
@ -835,9 +835,7 @@ def repr_pythonversion(v=None):
|
|||
|
||||
|
||||
def build_summary_stats_line(stats):
|
||||
keys = (
|
||||
"failed passed skipped deselected xfailed xpassed warnings error"
|
||||
).split()
|
||||
keys = ("failed passed skipped deselected xfailed xpassed warnings error").split()
|
||||
unknown_key_seen = False
|
||||
for key in stats.keys():
|
||||
if key not in keys:
|
||||
|
|
|
@ -281,9 +281,7 @@ class TestPDB(object):
|
|||
assert False
|
||||
"""
|
||||
)
|
||||
child = testdir.spawn_pytest(
|
||||
"--show-capture=all --pdb -p no:logging %s" % p1
|
||||
)
|
||||
child = testdir.spawn_pytest("--show-capture=all --pdb -p no:logging %s" % p1)
|
||||
child.expect("get rekt")
|
||||
output = child.before.decode("utf8")
|
||||
assert "captured log" not in output
|
||||
|
|
Loading…
Reference in New Issue