Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw, meas_extensions_ngmix
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Sprint:DRP S17-3
-
Team:Data Release Production
Description
Nate Pease [X] points out that the lsst_py3 Jenkins build is currently failing and has been since build #454 (regardless of the misleading red circles on Jenkins). Reported error is:
======================================================================
|
FAIL: testLeaks (__main__.TestMemory)
|
!Check for memory leaks in the preceding tests
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "/home/jenkins-slave/workspace/stack-os-matrix/label/centos-7/python/py3/lsstsw/stack/Linux64/utils/12.1-5-g648ee80+2/python/lsst/utils/tests.py", line 161, in testLeaks
|
self.fail("Leaked %d block%s" % (nleak, plural))
|
AssertionError: Leaked 13 blocks
|
|
----------------------------------------------------------------------
|
Ran 10 tests in 0.688s
|
|
FAILED (failures=1, skipped=2)
|
Number of calls to function has reached maxfev = 10.
|
Number of calls to function has reached maxfev = 10.
|
Number of calls to function has reached maxfev = 10.
|
Number of calls to function has reached maxfev = 10.
|
Please see
DM-9433. The implicit capture seemed reasonable to whoever wrote the original code, but it didn't work in Python 3 due to an obscure change in how long exceptions hang around. I prefer the explicit capture by far, since Python apparently uses late binding for local variables.