def METHOD_NAME(self):
    """https://github.com/IronLanguages/ironpython3/issues/1082"""
    def foo():
        [x for y in range(2)]
        x = 2
    with self.assertRaises(NameError) as cm:
        foo()
    self.assertNotIsInstance(cm.exception, UnboundLocalError)
    self.assertEqual(cm.exception.args, ("free variable 'x' referenced before assignment in enclosing scope",))