summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkg.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-09 15:54:27 (GMT)
committerGitHub <noreply@github.com>2018-07-09 15:54:27 (GMT)
commit13d1025e43068ba9f9da32b2e19f53bba9d91806 (patch)
treeaad86c721e7006659f79d625c6b3096cf5a00c98 /Lib/test/test_pkg.py
parentd73497ba52171bc8f786a70ecf50d3104b596221 (diff)
downloadcpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.zip
cpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.tar.gz
cpython-13d1025e43068ba9f9da32b2e19f53bba9d91806.tar.bz2
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Fixed also testing the "always" warning filter. (cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
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)