diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2018-07-09 15:25:55 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-09 15:25:55 (GMT) |
commit | b796e7dcdc24ff7ec53044af041254c83a8ace21 (patch) | |
tree | e2addc7ce512047e9ce01054e0587951acc8802a /Lib/test/test_support.py | |
parent | c287545d62edf1a1ee65727d3c57befa8c99c13a (diff) | |
download | cpython-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.py | 2 |
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): |