summaryrefslogtreecommitdiff
path: root/tests/test_install_scripts.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-17 00:17:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-17 00:17:46 +0200
commitc0d4c5676e3118c7189a97a555bfb70447276f29 (patch)
treec29939aebadd6a5b946d6b289e4babc57b7ea38b /tests/test_install_scripts.py
parent66f3b499473504c130a52d222b827a4413127f12 (diff)
downloadpython-setuptools-git-c0d4c5676e3118c7189a97a555bfb70447276f29.tar.gz
Issue #19600: Use specific asserts in distutils tests.
Diffstat (limited to 'tests/test_install_scripts.py')
-rw-r--r--tests/test_install_scripts.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_install_scripts.py b/tests/test_install_scripts.py
index 8952e744..1f7b1038 100644
--- a/tests/test_install_scripts.py
+++ b/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():