python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_global.cpython-312.pyc

ΑedZddlmZddlmZddlZddlZGddejZdZ	e
dk(rejyy)	zDVerify that warnings are issued for global statements following use.check_syntax_error)check_warningsNc*eZdZdZdZdZdZdZy)GlobalTestscd|jttjddyNerror
<test string>)module)enterContextrwarningsfilterwarnings)selfs D/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_global.pysetUpzGlobalTests.setUps#.*+@c&d}t||ddy)Nz<def wrong1():
    a = 1
    b = 2
    global a
    global b
linenooffsetr)rprog_text_1s  rtest1zGlobalTests.test1s	4QqArc&d}t||ddy)Nz(def wrong2():
    print(x)
    global x
rrr)rprog_text_2s  rtest2zGlobalTests.test2s
	4QqArc&d}t||ddy)Nz2def wrong3():
    print(x)
    x = 2
    global x
rrrr)rprog_text_3s  rtest3zGlobalTests.test3!s	4QqArc"d}t|ddy)Nzglobal x
x = 2
rexec)compile)rprog_text_4s  rtest4zGlobalTests.test4*s
	_f5rN)__name__
__module____qualname__rrrr"r'rrrr	sABBB6rrctjtjtjddyr	)unittestenterModuleContextrcatch_warningsrr+rrsetUpModuler03s) 7 7 9:GO<r__main__)__doc__test.supportrtest.support.warnings_helperrr-rTestCaserr0r(mainr+rr<module>r7sFJ+7'6(##'6T=
zHMMOr