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
|
a = 1
|
||||||
|
|
||||||
b = 2
|
b = 2
|
||||||
assert A.a == b, (
|
assert (
|
||||||
"A.a appears not to be b\nor does not appear to be b\none of those"
|
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):
|
def test_custom_repr(self):
|
||||||
class JSON(object):
|
class JSON(object):
|
||||||
|
|
|
@ -835,9 +835,7 @@ def repr_pythonversion(v=None):
|
||||||
|
|
||||||
|
|
||||||
def build_summary_stats_line(stats):
|
def build_summary_stats_line(stats):
|
||||||
keys = (
|
keys = ("failed passed skipped deselected xfailed xpassed warnings error").split()
|
||||||
"failed passed skipped deselected xfailed xpassed warnings error"
|
|
||||||
).split()
|
|
||||||
unknown_key_seen = False
|
unknown_key_seen = False
|
||||||
for key in stats.keys():
|
for key in stats.keys():
|
||||||
if key not in keys:
|
if key not in keys:
|
||||||
|
|
|
@ -281,9 +281,7 @@ class TestPDB(object):
|
||||||
assert False
|
assert False
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
child = testdir.spawn_pytest(
|
child = testdir.spawn_pytest("--show-capture=all --pdb -p no:logging %s" % p1)
|
||||||
"--show-capture=all --pdb -p no:logging %s" % p1
|
|
||||||
)
|
|
||||||
child.expect("get rekt")
|
child.expect("get rekt")
|
||||||
output = child.before.decode("utf8")
|
output = child.before.decode("utf8")
|
||||||
assert "captured log" not in output
|
assert "captured log" not in output
|
||||||
|
|
Loading…
Reference in New Issue