Skip to content

Commit

Permalink
Fix indentation in AtspiElementInfoTests.get_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
airelil committed Jan 22, 2020
1 parent 136e498 commit c8199ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pywinauto/unittests/test_atspi_element_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_RECT_eq(self):
r0.bottom = 5
self.assertEqual(r0, RECT(1, 2, 3, 5))
self.assertEqual(r0, (1, 2, 3, 5))

def test_RECT_repr(self):
"""Test RECT repr"""
r0 = RECT(0)
Expand All @@ -130,7 +130,7 @@ def get_app(self, name, pid=None):
pid = self.app.process
for child in self.desktop_info.children():
if child.name == name and pid == child.process_id:
return child
return child
raise Exception("Application not found")

def setUp(self):
Expand Down Expand Up @@ -254,7 +254,7 @@ def test_hash(self):
self.app2 = Application().start(_test_app())
time.sleep(1)
app_info2 = self.get_app(app_name, pid=self.app2.process)

frame_info1 = self.app_info.children()[0]
frame_info2 = app_info2.children()[0]
d = { frame_info1 : 1, frame_info2 : 2, }
Expand Down

0 comments on commit c8199ab

Please sign in to comment.