Use assertTrue() instead of deprecated assert_(). (#5526)
This commit is contained in:
parent
07ca9afaa8
commit
95c3262762
|
@ -548,7 +548,7 @@ class _pthFileTests(unittest.TestCase):
|
|||
'import sys; print("\\n".join(sys.path) if sys.flags.no_site else "")'
|
||||
], env=env, encoding='ansi')
|
||||
actual_sys_path = output.rstrip().split('\n')
|
||||
self.assert_(actual_sys_path, "sys.flags.no_site was False")
|
||||
self.assertTrue(actual_sys_path, "sys.flags.no_site was False")
|
||||
self.assertEqual(
|
||||
actual_sys_path,
|
||||
sys_path,
|
||||
|
|
Loading…
Reference in New Issue