summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.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_support.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_support.py')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 89f1fbf..7870e94 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -264,7 +264,7 @@ class TestSupport(unittest.TestCase):
with support.temp_cwd(name=TESTFN):
self.assertEqual(os.path.basename(os.getcwd()), TESTFN)
self.assertFalse(os.path.exists(TESTFN))
- self.assertTrue(os.path.basename(os.getcwd()), here)
+ self.assertEqual(os.getcwd(), here)
def test_temp_cwd__name_none(self):