§ x<ˆjêÉ ã ó — d Z ddlmZ ddlmZ ddlmZmZm Z G d„ de¦ « Z G d„ de¦ « Z G d „ d e¦ « Z G d„ de¦ « Z G d „ de¦ « ZdS )z& Tests for various Pyflakes behavior. é )Úversion_info)Úmessages)ÚTestCaseÚskipÚskipIfc óš — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z d „ Zd „ Zd„ Z d„ Zd „ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z!d „ Z" e#e$d!k d"¦ « d#„ ¦ « Z%d$„ Z&d%„ Z'd&„ Z(d'„ Z)d(„ Z*d)„ Z+ e,d*¦ « d+„ ¦ « Z-d,„ Z.d-„ Z/d.„ Z0d/„ Z1d0„ Z2d1„ Z3d2„ Z4d3„ Z5d4„ Z6d5„ Z7d6„ Z8d7„ Z9d8„ Z:d9S ):ÚTestc óF — | dt j ¦ « d S )Nzdef fu(bar, bar): pass)ÚflakesÚmÚDuplicateArgument©Úselfs új/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pyflakes/test/test_other.pyÚtest_duplicateArgszTest.test_duplicateArgs s € Ø�ŠÐ,aÔ.AÑBÔBÐBÐBÐBó c ó\ — | dt j t j ¦ « d S )NzG a = 1 def f(): a; a=1 f() )r r ÚUndefinedLocalÚUnusedVariabler s r Ú$test_localReferencedBeforeAssignmentz)Test.test_localReferencedBeforeAssignment s4 € Ø�Šð õ Ô �qÔ/ñ 1ô 1ð 1ð 1ð 1r c óî — | d¦ « | d¦ « | dt j ¦ « | d¦ « | d¦ « dS )z_ Test that reusing a variable in a generator does not raise a warning. z8 a = 1 (1 for a, b in [(1, 2)]) zU class A: a = 1 list(1 for a, b in [(1, 2)]) zQ def f(): a = 1 (1 for a, b in [(1, 2)]) zK (1 for a, b in [(1, 2)]) (1 for a, b in [(1, 2)]) zY for a, b in [(1, 2)]: pass (1 for a, b in [(1, 2)]) N©r r r r s r Útest_redefinedInGeneratorzTest.test_redefinedInGenerator ó¥ € ð �Šð ñ ô ð ð �Šð ñ ô ð ð �Šð õ Ô ñ ô ð ð �Šð ñ ô ð ð �Šð ñ ô ð ð ð r c óî — | d¦ « | d¦ « | dt j ¦ « | d¦ « | d¦ « dS )zg Test that reusing a variable in a set comprehension does not raise a warning. z8 a = 1 {1 for a, b in [(1, 2)]} zQ class A: a = 1 {1 for a, b in [(1, 2)]} zQ def f(): a = 1 {1 for a, b in [(1, 2)]} zK {1 for a, b in [(1, 2)]} {1 for a, b in [(1, 2)]} zY for a, b in [(1, 2)]: pass {1 for a, b in [(1, 2)]} Nr r s r Ú test_redefinedInSetComprehensionz%Test.test_redefinedInSetComprehension5 r r c óî — | d¦ « | d¦ « | dt j ¦ « | d¦ « | d¦ « dS )zh Test that reusing a variable in a dict comprehension does not raise a warning. z< a = 1 {1: 42 for a, b in [(1, 2)]} zU class A: a = 1 {1: 42 for a, b in [(1, 2)]} zU def f(): a = 1 {1: 42 for a, b in [(1, 2)]} zS {1: 42 for a, b in [(1, 2)]} {1: 42 for a, b in [(1, 2)]} z] for a, b in [(1, 2)]: pass {1: 42 for a, b in [(1, 2)]} Nr r s r Ú!test_redefinedInDictComprehensionz&Test.test_redefinedInDictComprehensionR