Use assertTrue() instead of deprecated assert_(). (#5526)

This commit is contained in:
Serhiy Storchaka 2018-02-04 18:14:47 +02:00 committed by GitHub
parent 07ca9afaa8
commit 95c3262762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,