From 86b1741fdde45508b8ba047721033255a9ddc435 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 27 May 2021 22:36:03 +0200 Subject: [PATCH] Fix nondeterministic test on Python < 3.7. --- test/test_ircutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_ircutils.py b/test/test_ircutils.py index 88ff5708d..f1f35d92d 100644 --- a/test/test_ircutils.py +++ b/test/test_ircutils.py @@ -65,7 +65,7 @@ class FunctionsTestCase(SupyTestCase): hs.add("*!user@host2") self.assertEqual(hs.match("nick!user@host"), "*!user@host") self.assertEqual(hs.match("nick!user@host2"), "*!user@host2") - self.assertEqual(list(hs), ["*!user@host", "*!user@host2"]) + self.assertCountEqual(list(hs), ["*!user@host", "*!user@host2"]) hs.remove("*!user@host2") self.assertEqual(hs.match("nick!user@host"), "*!user@host") self.assertEqual(hs.match("nick!user@host2"), None)