```py def test(): return x ``` gives `test.py:2:12 undefined name 'x'` as expected, but ```py def test(): global x return x ``` gives no warnings.
gives
test.py:2:12 undefined name 'x'as expected, butgives no warnings.