mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -187,7 +187,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
|
|||
print ("Expected line", expected)
|
||||
print ("Got stdout:")
|
||||
print (data)
|
||||
self.assert_(expected in data)
|
||||
self.assertTrue(expected in data)
|
||||
zip_name, run_name = _make_test_zip(d, "test_zip",
|
||||
script_name, '__main__.py')
|
||||
exit_code, data = _run_python(zip_name)
|
||||
|
@ -196,7 +196,7 @@ class ZipSupportTests(ImportHooksBaseTestCase):
|
|||
print ("Expected line", expected)
|
||||
print ("Got stdout:")
|
||||
print (data)
|
||||
self.assert_(expected in data)
|
||||
self.assertTrue(expected in data)
|
||||
|
||||
def test_pdb_issue4201(self):
|
||||
test_src = textwrap.dedent("""\
|
||||
|
@ -211,13 +211,13 @@ class ZipSupportTests(ImportHooksBaseTestCase):
|
|||
p = _spawn_python(script_name)
|
||||
p.stdin.write(b'l\n')
|
||||
data = _kill_python(p).decode()
|
||||
self.assert_(script_name in data)
|
||||
self.assertTrue(script_name in data)
|
||||
zip_name, run_name = _make_test_zip(d, "test_zip",
|
||||
script_name, '__main__.py')
|
||||
p = _spawn_python(zip_name)
|
||||
p.stdin.write(b'l\n')
|
||||
data = _kill_python(p).decode()
|
||||
self.assert_(run_name in data)
|
||||
self.assertTrue(run_name in data)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue