| 1 |
From: Roland Mas <[email protected]> |
| 2 |
Date: Fri, 4 Oct 2024 19:12:51 +0200 |
| 3 |
Subject: Allow for slower machines |
| 4 |
|
| 5 |
--- |
| 6 |
tests/test_pyautogui.py | 2 +- |
| 7 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 8 |
|
| 9 |
diff --git a/tests/test_pyautogui.py b/tests/test_pyautogui.py |
| 10 |
index 9e94dbe..dfcdab5 100644 |
| 11 |
--- a/tests/test_pyautogui.py |
| 12 |
+++ b/tests/test_pyautogui.py |
| 13 |
@@ -251,7 +251,7 @@ class TestGeneral(unittest.TestCase): |
| 14 |
pyautogui.moveTo(1, 1) |
| 15 |
|
| 16 |
elapsed = time.time() - startTime |
| 17 |
|
| 18 |
+ self.assertTrue(1.0 < elapsed < 1.5, "Took %s seconds, expected 1.0 < 1.5 seconds." % (elapsed)) |
| 19 |
|
| 20 |
pyautogui.PAUSE = oldValue # restore the old PAUSE value |
| 21 |
|