mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Merged revisions 73715 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
This commit is contained in:
parent
ef82be368a
commit
ab91fdef1f
274 changed files with 4538 additions and 4538 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