class X: pass def test(): y = X() test() print "OK"