Use assertTrue() instead of deprecated assert_(). (GH-5526) (GH-5527)

(cherry picked from commit 95c3262762)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-02-04 08:38:56 -08:00 committed by Serhiy Storchaka
parent 1a0239e12e
commit e6499a07d4
1 changed files with 1 additions and 1 deletions

View File

@ -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,