From 95c3262762f7d0da97ad633f40bed7cd2df9814c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 4 Feb 2018 18:14:47 +0200 Subject: [PATCH] Use assertTrue() instead of deprecated assert_(). (#5526) --- Lib/test/test_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.40.0