Project: datamanagement
Issue DM-5542: AFW rgb.py has undefined variable that breaks a test in some situations
The {{rgb.py}} test is failing for me with current AFW master: {code} tests/rgb.py .E............ ====================================================================== ERROR: testMakeRGBResize (__main__.RgbTestCase) Test the function that does it all, including rescaling ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/rgb.py", line 313, in testMakeRGBResize with Tempfile(fileName, remove=True): NameError: global name 'Tempfile' is not defined ---------------------------------------------------------------------- Ran 16 tests in 7.296s FAILED (errors=1) {code} {{Tempfile}} is definitely only used in line 313. It was introduced with commit c9864f49. I'm not entirely sure how this is not picked up by Jenkins as the test will run if matplotlib and scipy are installed and Jenkins does have those.
Story points: 1