mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #19600: Use specific asserts in distutils tests.
This commit is contained in:
parent
5665bc5980
commit
39989157ad
16 changed files with 36 additions and 36 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue