Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:3
Description
Sometimes the afw test testGausisianProcess.py can fail:
...
|
======================================================================
|
FAIL: testTooManyNeighbors (__main__.GaussianProcessTestCase)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "./tests/testGaussianProcess.py", line 62, in testTooManyNeighbors
|
gg.selfInterpolate(sigma, -1, nData-1)
|
AssertionError: Exception not raised
|
----------------------------------------------------------------------
|
Ran 11 tests in 1.992s
|
FAILED (failures=1)
|
This is a very rare failure. It ran 102 times on my laptop before it stopped with this failure. So far we have only seen reports of this failure on Python 3.
Attachments
Issue Links
- relates to
-
DM-7207 Modify afw tests to support pytest
- Done
Good to know. Thanks.
I think that also explains the randomness of the failures. Some small fraction of the time, the memory right before the interpolation points happens to say 0.0, and then neither the intended nor the bonus exception (the "Nearest neighbor search in selfInterpolate did not find self\n") get triggered, which triggers the assertRaises unit test.