Commit b180c33
fix: Use itertools.cycle for time.time() mock to fix Python 3.12 compatibility (#327)
The test was failing on Python 3.12 with StopIteration when the side_effect
list ran out of values. Using itertools.cycle provides unlimited values
for the mock, ensuring compatibility across all Python versions.
Co-authored-by: Abhimanyu Siwach <siwabhi@amazon.com>1 parent 00778cd commit b180c33
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1598 | 1599 | | |
1599 | 1600 | | |
1600 | 1601 | | |
| |||
0 commit comments