`test_trace_acquisition_measurement_control`: Prevent StopIteration upon more calls than elem in side_effect
Explanation of changes
test_trace_acquisition_measurement_control
is periodically running into StopIteration
.
Motivation of changes
Mocker raises StopIteration
upon more calls than elem in side_effect; extending the list should allow for an extra call without causing failure (also see https://stackoverflow.com/a/71833875).
side_effect=np.linspace(start=0, stop=1.0, num=4).tolist() + 3 * [1.0]
Merge checklist
See also merge request guidelines
-
Merge request has been reviewed and approved by a project maintainer. -
Merge request contains a clear description of the proposed changes and the issue it addresses. -
Merge request made onto appropriate branch (main for most MRs). -
New code is fully tested. -
New code is documented and docstrings use numpydoc format. -
CHANGELOG.rst
andAUTHORS.rst
have been updated (when applicable). -
CI pipelines pass -
pre-commit run --all-files --hook-stage commit
passes (gitlab-ci), - test suite passes (gitlab-ci),
- no degradation in code-coverage (codacy),
- no (serious) new pylint code quality issues introduced (codacy),
- documentation builds successfully (CI and readthedocs),
-
windows tests pass (manually triggered by maintainers before merging).
-
For reference, the issues workflow is described in the contribution guidelines.