mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 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_(self.module_name not in sys.modules and
|
||||
self.assertTrue(self.module_name not in sys.modules 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