
Nov. 12, 2021
6:34 p.m.
12.11.21 12:55, Petr Viktorin пише:
AttributeError: '[...]Tests' object has no attribute 'failUnless' (bpo-45162)
This one caused me troubles more then one time. It is so easy to make a typo and write assertEquals instead of assertEqual or assertRaisesRegexp instead of assertRaisesRegex. Tests are passed, and warnings are ignored. Then I run tests with -Werror to test new warnings and get a lot of unrelated failures because of PRs merged at last half-year. I am very glad that these long time ago deprecated aliases are finally removed.