mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -317,7 +317,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
try:
|
||||
__import__(module_name, level=0)
|
||||
except DeprecationWarning as exc:
|
||||
self.assert_(module_name in exc.args[0],
|
||||
self.assertTrue(module_name in exc.args[0],
|
||||
"%s warning didn't contain module name"
|
||||
% module_name)
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue