summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.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_support.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_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 6e0c122..45cdc94 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -247,7 +247,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):