Skip to content

Commit

Permalink
Replace unittest.skip with unittest.skipIf in test_dispinterface.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 8, 2024
1 parent 2f75037 commit ce02f09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comtypes/test/test_dispinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")

Expand Down

0 comments on commit ce02f09

Please sign in to comment.