mirror of
https://github.com/python/cpython.git
synced 2025-12-23 00:48:41 +00:00
gh-71339: Use new assertion methods in tests (GH-129046)
This commit is contained in:
parent
bb244fd33d
commit
2602d8ae98
117 changed files with 407 additions and 445 deletions
|
|
@ -316,7 +316,7 @@ class CompileallTestsBase:
|
|||
|
||||
self.assertTrue(mods)
|
||||
for mod in mods:
|
||||
self.assertTrue(mod.startswith(self.directory), mod)
|
||||
self.assertStartsWith(mod, self.directory)
|
||||
modcode = importlib.util.cache_from_source(mod)
|
||||
modpath = mod[len(self.directory+os.sep):]
|
||||
_, _, err = script_helper.assert_python_failure(modcode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue