mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#9424: Replace deprecated assert* methods in the Python test suite.
This commit is contained in:
parent
b8bc439b20
commit
b3aedd4862
170 changed files with 2388 additions and 2392 deletions
|
@ -1000,7 +1000,7 @@ class WriteTest(WriteTestBase):
|
|||
tar = tarfile.open(tmpname, "r")
|
||||
try:
|
||||
for t in tar:
|
||||
self.assert_(t.name == "." or t.name.startswith("./"))
|
||||
self.assertTrue(t.name == "." or t.name.startswith("./"))
|
||||
finally:
|
||||
tar.close()
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue