File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1- The incorrect string literals are fixed .
1+ Fixed formatting of string literals in internal tests .
Original file line number Diff line number Diff 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 \n one of those"
250- )
248+ assert (
249+ A .a == b
250+ ), "A.a appears not to be b \n or does not appear to be b \n one of those"
251251
252252 def test_custom_repr (self ):
253253 class JSON (object ):
Original file line number Diff line number Diff line change @@ -835,9 +835,7 @@ def repr_pythonversion(v=None):
835835
836836
837837def 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments