diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-17 00:17:46 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-17 00:17:46 +0200 |
commit | 39989157add83040a3d29a1bd0a04142ad98d7db (patch) | |
tree | 0f7d77303033959a0e8799776014ab72a99e22ab /Lib/distutils/tests/test_install_scripts.py | |
parent | 5665bc5980cd20252fe1d27807759cecee8594d0 (diff) | |
download | cpython-git-39989157add83040a3d29a1bd0a04142ad98d7db.tar.gz |
Issue #19600: Use specific asserts in distutils tests.
Diffstat (limited to 'Lib/distutils/tests/test_install_scripts.py')
-rw-r--r-- | Lib/distutils/tests/test_install_scripts.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_install_scripts.py b/Lib/distutils/tests/test_install_scripts.py index 8952e744e5..1f7b1038cb 100644 --- a/Lib/distutils/tests/test_install_scripts.py +++ b/Lib/distutils/tests/test_install_scripts.py @@ -24,10 +24,10 @@ class InstallScriptsTestCase(support.TempdirManager, skip_build=1, ) cmd = install_scripts(dist) - self.assertTrue(not cmd.force) - self.assertTrue(not cmd.skip_build) - self.assertTrue(cmd.build_dir is None) - self.assertTrue(cmd.install_dir is None) + self.assertFalse(cmd.force) + self.assertFalse(cmd.skip_build) + self.assertIsNone(cmd.build_dir) + self.assertIsNone(cmd.install_dir) cmd.finalize_options() @@ -72,7 +72,7 @@ class InstallScriptsTestCase(support.TempdirManager, installed = os.listdir(target) for name in expected: - self.assertTrue(name in installed) + self.assertIn(name, installed) def test_suite(): |