From ce02f093d55e50ee1b3fd4c4fc0624113614c74e Mon Sep 17 00:00:00 2001 From: junkmd <jun.k.job.finding12@gmail.com> Date: Sun, 8 Dec 2024 20:03:36 +0900 Subject: [PATCH] Replace `unittest.skip` with `unittest.skipIf` in `test_dispinterface`. --- comtypes/test/test_dispinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comtypes/test/test_dispinterface.py b/comtypes/test/test_dispinterface.py index 7f3d0b14d..9cc6b07fa 100644 --- a/comtypes/test/test_dispinterface.py +++ b/comtypes/test/test_dispinterface.py @@ -29,9 +29,9 @@ def tearDownModule(): unregister(comtypes.test.TestDispServer.TestDispServer) -@unittest.skip("This depends on 'pywin32'.") +@unittest.skipIf(IMPORT_PYWIN32_FAILED, "This depends on 'pywin32'.") class Test_win32com(unittest.TestCase): - def test_win32com(self): + def test_win32com_ensure_dispatch(self): # EnsureDispatch is case-sensitive d = EnsureDispatch("TestDispServerLib.TestDispServer") @@ -58,7 +58,7 @@ def test_win32com(self): d.name = "blah" self.assertEqual(d.name, "blah") - def test_win32com_dyndispatch(self): + def test_win32com_dynamic_dispatch(self): # dynamic Dispatch is case-IN-sensitive d = Dispatch("TestDispServerLib.TestDispServer")