Skip to content

Commit

Permalink
Remove ApplicationTestCases.test_should_return_not_running_if_failed_…
Browse files Browse the repository at this point in the history
…to_open_process as it confuses ApplicationWarningTests in Py3.3
  • Loading branch information
airelil committed Jul 12, 2017
1 parent 71e18f6 commit 36ab66d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pywinauto/unittests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,20 +629,6 @@ def test_should_return_not_running_if_not_started(self):
app.wait_for_process_exit(timeout=10, retry_interval=1)
self.assertFalse(app.is_process_running())

@mock.patch.object(win32api, 'OpenProcess')
def test_should_return_not_running_if_failed_to_open_process(self, func_open_process):
"""Tests error handling wehn OpenProcess return 0 handle
Checks is_process_running and wait_for_process_exit works
even if OpenProcess returns 0 handle without exception
"""
func_open_process.return_value = pywintypes.HANDLE(0)
app = Application()
app.start(_notepad_exe())
app.wait_for_process_exit(timeout=10, retry_interval=1)
self.assertFalse(app.is_process_running())
app.kill()

class TestInheritedApp(Application):

"""Our inherited version of class"""
Expand Down

0 comments on commit 36ab66d

Please sign in to comment.