Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyverbs: Fix randrange deprecation warning
[ Upstream commit ff5b2ac ] Second argument to randrange() call is not integer as such every time rdma-core tests were run, the following deprecation warnings were printed. ./tests/test_device.py:284: DeprecationWarning: non-integer arguments to randrange() have been deprecated since Python 3.10 and will be removed in a subsequent version dm_len = random.randrange(u.MIN_DM_SIZE, self.attr_ex.max_dm_size/2, Let's cast that argument to integer. Fixes: 259fab3 ("tests: Avoid large allocation attempts of device memory") Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Nicolas Morey <[email protected]>
- Loading branch information