void () { runWithLanguageLevel( LanguageLevel.PYTHON34, () -> doTest(""" def outer(): <rainbow color='ff000001'>another</rainbow> = None <rainbow color='ff000002'>another2</rainbow> = None <rainbow color='ff000003'>another3</rainbow> = None <rainbow color='ff000004'>from_outer</rainbow> = 1 def nested(): nonlocal <rainbow color='ff000004'>from_outer</rainbow> <rainbow color='ff000004'>from_outer</rainbow> = 2 print(<rainbow color='ff000004'>from_outer</rainbow>) """) ); }