python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_global.cpython-311.pyc

edZddlmZddlmZddlZddlZGddejZdZ	e
dkrejdSdS)	zDVerify that warnings are issued for global statements following use.check_syntax_error)check_warningsNc,eZdZdZdZdZdZdZdS)GlobalTestsct|ttjdddSNerror
<test string>)module)enterContextrwarningsfilterwarnings)selfs D/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_global.pysetUpzGlobalTests.setUps8.**+++@@@@@@c0d}t||dddS)Nz<def wrong1():
    a = 1
    b = 2
    global a
    global b
linenooffsetr)rprog_text_1s  rtest1zGlobalTests.test1s(	4QqAAAAAArc0d}t||dddS)Nz(def wrong2():
    print(x)
    global x
rrr)rprog_text_2s  rtest2zGlobalTests.test2s(
	4QqAAAAAArc0d}t||dddS)Nz2def wrong3():
    print(x)
    x = 2
    global x
rrrr)rprog_text_3s  rtest3zGlobalTests.test3!s(	4QqAAAAAArc,d}t|dddS)Nzglobal x
x = 2
rexec)compile)rprog_text_4s  rtest4zGlobalTests.test4*s#
	_f55555rN)__name__
__module____qualname__rrrr"r'rrrr	skAAABBBBBBBBB66666rrc|tjtjtjdddSr	)unittestenterModuleContextrcatch_warningsrr+rrsetUpModuler03s8 7 9 9:::GO<<<<<<r__main__)__doc__test.supportrtest.support.warnings_helperrr-rTestCaserr0r(mainr+rr<module>r7sJJ++++++777777'6'6'6'6'6(#'6'6'6T===
zHMOOOOOr