Mentions légales du service

Skip to content
Snippets Groups Projects
  • hhakim's avatar
    885c9a75
    Fix testGetItem test that rarely failed. · 885c9a75
    hhakim authored
    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))
    885c9a75
    History
    Fix testGetItem test that rarely failed.
    hhakim authored
    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))