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_msvc9compiler.py | |
parent | 5665bc5980cd20252fe1d27807759cecee8594d0 (diff) | |
download | cpython-39989157add83040a3d29a1bd0a04142ad98d7db.tar.gz cpython-39989157add83040a3d29a1bd0a04142ad98d7db.zip |
Issue #19600: Use specific asserts in distutils tests.
Diffstat (limited to 'Lib/distutils/tests/test_msvc9compiler.py')
-rw-r--r-- | Lib/distutils/tests/test_msvc9compiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index 301d43d20c0..5e18c613603 100644 --- a/Lib/distutils/tests/test_msvc9compiler.py +++ b/Lib/distutils/tests/test_msvc9compiler.py @@ -128,7 +128,7 @@ class msvc9compilerTestCase(support.TempdirManager, # windows registeries versions. path = r'Control Panel\Desktop' v = Reg.get_value(path, 'dragfullwindows') - self.assertTrue(v in ('0', '1', '2')) + self.assertIn(v, ('0', '1', '2')) import winreg HKCU = winreg.HKEY_CURRENT_USER @@ -136,7 +136,7 @@ class msvc9compilerTestCase(support.TempdirManager, self.assertEqual(keys, None) keys = Reg.read_keys(HKCU, r'Control Panel') - self.assertTrue('Desktop' in keys) + self.assertIn('Desktop', keys) def test_remove_visual_c_ref(self): from distutils.msvc9compiler import MSVCCompiler @@ -174,7 +174,7 @@ class msvc9compilerTestCase(support.TempdirManager, compiler = MSVCCompiler() got = compiler._remove_visual_c_ref(manifest) - self.assertIs(got, None) + self.assertIsNone(got) def test_suite(): |