Skip to content

Commit

Permalink
Don't run UIA tests for .kill() if there is no comtypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasily-v-ryabov committed Dec 30, 2018
1 parent e7390b5 commit a7cc3ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pywinauto/unittests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ def test_kill_soft_with_modal_subdialog(self):
self.assertTrue(self.app.kill(soft=True)) # already killed, returned True anyway


class ApplicationUiaKillTestCases(ApplicationWin32KillTestCases):
if sysinfo.UIA_support:
class ApplicationUiaKillTestCases(ApplicationWin32KillTestCases):

"""Unit tests for method Application.kill() with backend='uia'"""
"""Unit tests for method Application.kill() with backend='uia'"""

backend = 'uia'
# the same test methods run here
backend = 'uia'
# the same test methods run here


if ctypes.windll.shell32.IsUserAnAdmin() == 0:
Expand Down

0 comments on commit a7cc3ad

Please sign in to comment.