Skip to content

Commit 8b27acc

Browse files
We don't care about the order of the result, only that they match.
1 parent e9979cf commit 8b27acc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/test_mail_v2.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def test_send(self):
9898
}
9999
'''))
100100

101-
self.assertEqual(url, test_url)
101+
try:
102+
self.assertItemsEqual(url, test_url)
103+
except: # Python 3+
104+
self.assertCountEqual(url, test_url)
102105

103106
@unittest.skipUnless(sys.version_info < (3, 0), 'only for python2')
104107
def test__build_body_unicode(self):

0 commit comments

Comments
 (0)