[Python-checkins] Use assertTrue() instead of deprecated assert_(). (#5526)
Serhiy Storchaka
webhook-mailer at python.org
Sun Feb 4 11:14:50 EST 2018
https://github.com/python/cpython/commit/95c3262762f7d0da97ad633f40bed7cd2df9814c
commit: 95c3262762f7d0da97ad633f40bed7cd2df9814c
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-02-04T18:14:47+02:00
summary:
Use assertTrue() instead of deprecated assert_(). (#5526)
files:
M Lib/test/test_site.py
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 @@ def test_underpth_nosite_file(self):
'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,
More information about the Python-checkins
mailing list