# fixhunt regression fixture: ruff UP005, ruff 0.17.1 # the fix labelled safe changes the program's output on this program # before the fix: no stdout, stderr "AttributeError: 'Test' object has no attribute 'assertAlmostEquals'. Did you mean: 'assertAlmostEqual'?", exit 1 # after the fix: no stdout, stderr "NameError: name 'val' is not defined. Did you mean: 'eval'?", exit 1 # finding 2026-10-17T21-11-13-477Z-9jdd-ruff-UP005/r1-p006; rule fired 1 time(s) before the fix import unittest class Test(unittest.TestCase): def test(self): try: self.assertAlmostEquals(val, 0.333, places=5) except AssertionError as e: print('AssertionError:', type(e).__name__, str(e)) Test().test()