From 1d0734bf7db2567705e0c6a572c4df26a9242663 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 13 Sep 2020 12:17:40 -0700 Subject: [PATCH] Work around psf/black#1629 --- src/twisted/words/test/test_irc.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/twisted/words/test/test_irc.py b/src/twisted/words/test/test_irc.py index 51dee2a6123..b37fab8ed65 100644 --- a/src/twisted/words/test/test_irc.py +++ b/src/twisted/words/test/test_irc.py @@ -1750,16 +1750,17 @@ def testWhois(self): timestamp, ["#fakeusers", "#fakemisc"], ) - expected = "\r\n".join( - [ - ":%(hostname)s 311 %(req)s %(targ)s target host.com * :Target User", - ":%(hostname)s 312 %(req)s %(targ)s irc.host.com :A fake server", - ":%(hostname)s 317 %(req)s %(targ)s 12 %(timestamp)s :seconds idle, signon time", - ":%(hostname)s 319 %(req)s %(targ)s :#fakeusers #fakemisc", - ":%(hostname)s 318 %(req)s %(targ)s :End of WHOIS list.", - "", - ] - ) % dict(hostname=hostname, timestamp=timestamp, req=req, targ=targ) + lines = [ + ":%(hostname)s 311 %(req)s %(targ)s target host.com * :Target User", + ":%(hostname)s 312 %(req)s %(targ)s irc.host.com :A fake server", + ":%(hostname)s 317 %(req)s %(targ)s 12 %(timestamp)s :seconds idle, signon time", + ":%(hostname)s 319 %(req)s %(targ)s :#fakeusers #fakemisc", + ":%(hostname)s 318 %(req)s %(targ)s :End of WHOIS list.", + "", + ] + expected = "\r\n".join(lines) % dict( + hostname=hostname, timestamp=timestamp, req=req, targ=targ + ) self.check(expected)