summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipimport_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_zipimport_support.py')
-rw-r--r--Lib/test/test_zipimport_support.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_zipimport_support.py b/Lib/test/test_zipimport_support.py
index 3f4cd3f..94a65fc 100644
--- a/Lib/test/test_zipimport_support.py
+++ b/Lib/test/test_zipimport_support.py
@@ -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():