Opened 8 years ago
Closed 8 years ago
#27579 closed Cleanup/optimization (fixed)
Alias Python 3's assertion names on Python 2 in SimpleTestCase
Description ¶
To minimize the usage of six
so there's less changes to make when dropping Python 2, the following Python 3 to Python 2 aliases could be added:
assertCountEqual = unittest.TestCase.assertItemsEqual assertNotRegex = unittest.TestCase.assertNotRegexpMatches assertRaisesRegex = unittest.TestCase.assertRaisesRegexp assertRegex = unittest.TestCase.assertRegexpMatches
Change History (4)
comment:1 by , 8 years ago
Has patch: | set |
---|
comment:3 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR