From: Serhiy Storchaka Date: Sun, 4 Feb 2018 16:14:47 +0000 (+0200) Subject: Use assertTrue() instead of deprecated assert_(). (#5526) X-Git-Tag: v3.8.0a1~2269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95c3262762f7d0da97ad633f40bed7cd2df9814c;p=thirdparty%2FPython%2Fcpython.git Use assertTrue() instead of deprecated assert_(). (#5526) --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index b6648d67ca68..e3c9deebf08c 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,