summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-04 16:14:47 (GMT)
committerGitHub <noreply@github.com>2018-02-04 16:14:47 (GMT)
commit95c3262762f7d0da97ad633f40bed7cd2df9814c (patch)
tree1ad182a793730eb58c538f54aa4d5df383e50494 /Lib/test/test_site.py
parent07ca9afaa8768b44baf816b4998d209ed3e0088f (diff)
downloadcpython-95c3262762f7d0da97ad633f40bed7cd2df9814c.zip
cpython-95c3262762f7d0da97ad633f40bed7cd2df9814c.tar.gz
cpython-95c3262762f7d0da97ad633f40bed7cd2df9814c.tar.bz2
Use assertTrue() instead of deprecated assert_(). (#5526)
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index b6648d6..e3c9dee 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,