summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkg.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-07-09 15:25:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-07-09 15:25:55 (GMT)
commitb796e7dcdc24ff7ec53044af041254c83a8ace21 (patch)
treee2addc7ce512047e9ce01054e0587951acc8802a /Lib/test/test_pkg.py
parentc287545d62edf1a1ee65727d3c57befa8c99c13a (diff)
downloadcpython-b796e7dcdc24ff7ec53044af041254c83a8ace21.zip
cpython-b796e7dcdc24ff7ec53044af041254c83a8ace21.tar.gz
cpython-b796e7dcdc24ff7ec53044af041254c83a8ace21.tar.bz2
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Fixed also testing the "always" warning filter.
Diffstat (limited to 'Lib/test/test_pkg.py')
-rw-r--r--Lib/test/test_pkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pkg.py b/Lib/test/test_pkg.py
index 532e8fe..8130eab 100644
--- a/Lib/test/test_pkg.py
+++ b/Lib/test/test_pkg.py
@@ -138,7 +138,7 @@ class TestPkg(unittest.TestCase):
s = """
from t2 import *
- self.assertTrue(dir(), ['self', 'sub'])
+ self.assertEqual(dir(), ['self', 'sub'])
"""
self.run_code(s)