Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 885c9a75 authored by hhakim's avatar hhakim
Browse files

Fix testGetItem test that rarely failed.

The failure happens when F.shape[1] == 1 (F is generated randomly).

E
======================================================================
ERROR: testGetItem (__main__.TestFaustPy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gitlab-runner/test_FaustPy.py", line 300, in testGetItem
    rand_i, rand_j = self.r.randint(0,self.F.shape[0]-2),self.r.randint(0,self.F.shape[1]-2)
  File "/usr/lib64/python3.9/random.py", line 338, in randint
    return self.randrange(a, b+1)
  File "/usr/lib64/python3.9/random.py", line 316, in randrange
    raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
parent 5503e831
Branches
Tags 3.38.15
No related merge requests found
Pipeline #834158 skipped
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment