Skip to content

Commit

Permalink
Fixes docstring accroding to codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
efremovd committed Jun 29, 2017
1 parent 6f3bd0a commit 9218308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion pywinauto/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,6 @@ def wait_for_process_exit(self, timeout=None, retry_interval=None):
Raises TimeoutError exception if timeout was reached
"""

if timeout is None:
timeout = Timings.app_exit_timeout
if retry_interval is None:
Expand Down
10 changes: 5 additions & 5 deletions pywinauto/unittests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,20 +621,20 @@ def test_process_is_running(self):
self.assertFalse(app.is_process_running())

def test_should_return_not_running_if_not_started(self):
"""
Tests that is_process_running and wait_for_process_exit can be
called on not started/disconnected instance
"""Tests that works on new instance
is_process_running/wait_for_process_exit can be called on not started/disconnected instance
"""
app = Application()
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 that is_process_running and wait_for_process_exit works
even if OpenProcess returns NULL handle without exception
"""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()
Expand Down

0 comments on commit 9218308

Please sign in to comment.