This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rarity
Recipients Rarity
Date 2021-08-03.20:24:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628022280.67.0.522628726203.issue44819@roundup.psfhosted.org>
In-reply-to
Content
Like the title says, TestCase.assertSequenceEqual does not behave like TestCase.assertEqual where it uses TestCase._getAssertEqualityFunc. Instead, TestCase.assertSequenceEqual uses `item1 != item2`. That way I can do something like this:

```
def test_stuff(self):
   self.addTypeEqualityFunc(
      MyObject,
      comparison_method_which_compares_how_i_want,
   )
   self.assertListEqual(
      get_list_of_objects(),
      [MyObject(...), MyObject(...)],
   )
```
History
Date User Action Args
2021-08-03 20:24:40Raritysetrecipients: + Rarity
2021-08-03 20:24:40Raritysetmessageid: <1628022280.67.0.522628726203.issue44819@roundup.psfhosted.org>
2021-08-03 20:24:40Raritylinkissue44819 messages
2021-08-03 20:24:40Raritycreate