diff --git a/tests/test_filters.py b/tests/test_filters.py index e8c4c6637..d19396be9 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -254,12 +254,10 @@ class FiltersTest(BaseTest, unittest.TestCase): self.assertTrue((Filters.text & (Filters.forwarded | Filters.entity(MessageEntity.MENTION)) )(self.message)) - self.assertRegexpMatches( + self.assertEqual( str((Filters.text & (Filters.forwarded | Filters.entity(MessageEntity.MENTION)))), - r" and or " - r">>") + '>' + ) def test_inverted_filters(self): self.message.text = '/test'