I saw this too, during today's dist-upgrade. Based on comparing those assert lines with others elsewhere in the file, it looks like they're missing a %.
Trivial patch to add it attached. I've tested it locally (by patching the installed file and running the py3compile command from the postinst, not by rebuilding the package), and it at least silences the warnings. Whether this produces the desired behavior I don't know; I don't know Python well enough to understand what this syntax actually does. There were two different style conventions about this (whether to include spaces around the %) elsewhere in the file, so I just picked one. -- Andrew J. Buehler
--- /usr/lib/python3/dist-packages/urwid/tests/test_canvas.py 2018-01-21 15:02:02.000000000 -0500 +++ /tmp/test_canvas.py 2020-04-10 12:32:23.734334939 -0400 @@ -138,15 +138,15 @@ class ShardsTrimTest(unittest.TestCase): def sttop(self, shards, top, expected): result = canvas.shards_trim_top(shards, top) - assert result == expected, "got: %r expected: %r" (result, expected) + assert result == expected, "got: %r expected: %r" % (result, expected) def strows(self, shards, rows, expected): result = canvas.shards_trim_rows(shards, rows) - assert result == expected, "got: %r expected: %r" (result, expected) + assert result == expected, "got: %r expected: %r" % (result, expected) def stsides(self, shards, left, cols, expected): result = canvas.shards_trim_sides(shards, left, cols) - assert result == expected, "got: %r expected: %r" (result, expected) + assert result == expected, "got: %r expected: %r" % (result, expected) def test1(self): @@ -229,7 +229,7 @@ class ShardsJoinTest(unittest.TestCase): def sjt(self, shard_lists, expected): result = canvas.shards_join(shard_lists) - assert result == expected, "got: %r expected: %r" (result, expected) + assert result == expected, "got: %r expected: %r" % (result, expected) def test(self): shards1 = [(5, [(0,0,10,5,None,"foo"), (0,0,5,8,None,"baz")]),
signature.asc
Description: OpenPGP digital signature