mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -52,7 +52,7 @@ class TestImport(unittest.TestCase):
|
|||
try: __import__(self.module_name)
|
||||
except SyntaxError: pass
|
||||
else: raise RuntimeError, 'Failed to induce SyntaxError'
|
||||
self.assert_(not sys.modules.has_key(self.module_name) and
|
||||
self.assertTrue(not sys.modules.has_key(self.module_name) and
|
||||
not hasattr(sys.modules[self.package_name], 'foo'))
|
||||
|
||||
# ...make up a variable name that isn't bound in __builtins__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue