From 7e48ba0ba86dec444aa2c3ad6ad18e1b6774df27 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 11 Apr 2020 00:16:01 +0200 Subject: [PATCH] SedRegex: Use assertSnarfNoResponse instead of assertNoResponse. assertNoResponse was only passing by accident on faster machines. --- plugins/SedRegex/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/SedRegex/test.py b/plugins/SedRegex/test.py index 4b341eda9..87ddea73f 100644 --- a/plugins/SedRegex/test.py +++ b/plugins/SedRegex/test.py @@ -59,7 +59,7 @@ class SedRegexTestCase(ChannelPluginTestCase): def testIgnoreRegexpWithBadCase(self): self.feedMsg('aliens are invading, help!') - self.assertNoResponse('S/aliens/monsters/') + self.assertSnarfNoResponse('S/aliens/monsters/') def testGlobalReplace(self): self.feedMsg('AAaa aaAa a b') @@ -145,7 +145,6 @@ class SedRegexTestCase(ChannelPluginTestCase): m = self.getMsg('echo dummy message') # XXX: this is a total hack... for msg in self.irc.state.history: - print("Message in history: %s" % msg, end='') self.assertNotIn("cbn't", str(msg)) def testActionReplace(self):