]> granicus.if.org Git - python/commitdiff
Use assertTrue() instead of deprecated assert_(). (#5526)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Feb 2018 16:14:47 +0000 (18:14 +0200)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2018 16:14:47 +0000 (18:14 +0200)
Lib/test/test_site.py

index b6648d67ca687660f0b5e9d48cec8b6fd3387bf1..e3c9deebf08c02ac8f492b0e9631199f4292ff9e 100644 (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,