Skip to content

Commit 194e01b

Browse files
committed
Update all currently enabled/disabled tests for windows
Enable one previously disabled test for windows that now works and disable a few key typing related issues with autopy on windows that seem fixed upstream but not for the current release.
1 parent d3f9531 commit 194e01b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/test_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def test_mouse_scroll(self) -> None:
354354
self.child_app = None
355355

356356
@unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "PyQt disabled")
357-
@unittest.skipIf(os.name == 'nt', "Windows takes too long, test fails")
358357
@retry_on_failure(max_attempts=5)
359358
def test_keys_press(self) -> None:
360359
"""Check key press effect for all display controller backends."""
@@ -378,6 +377,7 @@ def test_keys_press(self) -> None:
378377
self._verify_dumps("keys")
379378

380379
@unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "PyQt disabled")
380+
@unittest.skipIf(os.name == 'nt', "AutoPy on Windows has a panic attack")
381381
@retry_on_failure(max_attempts=5)
382382
def test_keys_type(self) -> None:
383383
"""Check key type effect for all display controller backends."""

tests/test_region_control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def test_press_vanish(self) -> None:
327327
self.close_windows()
328328

329329
@unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "PyQt disabled")
330+
@unittest.skipIf(os.name == 'nt', "AutoPy on Windows has a panic attack")
330331
def test_type_text(self) -> None:
331332
self.show_application()
332333
self.region.click(self.textedit_quit_control)
@@ -335,6 +336,7 @@ def test_type_text(self) -> None:
335336
self.child_app = None
336337

337338
@unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "PyQt disabled")
339+
@unittest.skipIf(os.name == 'nt', "AutoPy on Windows has a panic attack")
338340
def test_type_at(self) -> None:
339341
self.show_application()
340342
self.region.type_at('quit', self.textedit_quit_control)
@@ -349,6 +351,7 @@ def test_click_at(self) -> None:
349351
self.child_app = None
350352

351353
@unittest.skipIf(os.environ.get('DISABLE_PYQT', "0") == "1", "PyQt disabled")
354+
@unittest.skipIf(os.name == 'nt', "AutoPy on Windows has a panic attack")
352355
def test_fill_at(self) -> None:
353356
self.show_application()
354357
self.region.fill_at(self.textedit_quit_control, 'quit', 0, 0)

0 commit comments

Comments
 (0)