From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 4 Feb 2018 16:38:56 +0000 (-0800) Subject: Use assertTrue() instead of deprecated assert_(). (GH-5526) (GH-5527) X-Git-Tag: v3.7.0b2~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6499a07d4f55bb75690340e6fdd9b7b69d581e1;p=python Use assertTrue() instead of deprecated assert_(). (GH-5526) (GH-5527) (cherry picked from commit 95c3262762f7d0da97ad633f40bed7cd2df9814c) Co-authored-by: Serhiy Storchaka --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index b6648d67ca..e3c9deebf0 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -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,