>>> py3-pyflakes: Building community/py3-pyflakes 3.0.1-r1 (using abuild 3.11.0_rc13-r0) started Wed, 26 Apr 2023 18:41:50 +0000 >>> py3-pyflakes: Checking sanity of /home/buildozer/aports/community/py3-pyflakes/APKBUILD... >>> py3-pyflakes: Analyzing dependencies... >>> py3-pyflakes: Installing for build: build-base python3 py3-setuptools (1/19) Installing libbz2 (1.0.8-r5) (2/19) Installing libffi (3.4.4-r2) (3/19) Installing gdbm (1.23-r1) (4/19) Installing xz-libs (5.4.2-r1) (5/19) Installing mpdecimal (2.5.1-r2) (6/19) Installing libpanelw (6.4_p20230401-r6) (7/19) Installing readline (8.2.1-r1) (8/19) Installing sqlite-libs (3.41.2-r2) (9/19) Installing python3 (3.11.3-r10) (10/19) Installing python3-pycache-pyc0 (3.11.3-r10) (11/19) Installing pyc (0.1-r0) (12/19) Installing python3-pyc (3.11.3-r10) (13/19) Installing py3-parsing (3.0.9-r2) (14/19) Installing py3-parsing-pyc (3.0.9-r2) (15/19) Installing py3-packaging (23.1-r1) (16/19) Installing py3-packaging-pyc (23.1-r1) (17/19) Installing py3-setuptools (67.7.2-r0) (18/19) Installing py3-setuptools-pyc (67.7.2-r0) (19/19) Installing .makedepends-py3-pyflakes (20230426.184150) Executing busybox-1.36.0-r8.trigger OK: 420 MiB in 117 packages >>> py3-pyflakes: Cleaning up srcdir >>> py3-pyflakes: Cleaning up pkgdir >>> py3-pyflakes: Fetching https://distfiles.alpinelinux.org/distfiles/v3.18/pyflakes-3.0.1.tar.gz >>> py3-pyflakes: Fetching https://distfiles.alpinelinux.org/distfiles/v3.18/pyflakes-3.0.1.tar.gz >>> py3-pyflakes: Checking sha512sums... pyflakes-3.0.1.tar.gz: OK >>> py3-pyflakes: Unpacking /var/cache/distfiles/v3.18/pyflakes-3.0.1.tar.gz... /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) running build running build_py creating build creating build/lib creating build/lib/pyflakes copying pyflakes/__init__.py -> build/lib/pyflakes copying pyflakes/checker.py -> build/lib/pyflakes copying pyflakes/messages.py -> build/lib/pyflakes copying pyflakes/__main__.py -> build/lib/pyflakes copying pyflakes/api.py -> build/lib/pyflakes copying pyflakes/reporter.py -> build/lib/pyflakes creating build/lib/pyflakes/scripts copying pyflakes/scripts/__init__.py -> build/lib/pyflakes/scripts copying pyflakes/scripts/pyflakes.py -> build/lib/pyflakes/scripts creating build/lib/pyflakes/test copying pyflakes/test/test_other.py -> build/lib/pyflakes/test copying pyflakes/test/__init__.py -> build/lib/pyflakes/test copying pyflakes/test/test_undefined_names.py -> build/lib/pyflakes/test copying pyflakes/test/test_builtin.py -> build/lib/pyflakes/test copying pyflakes/test/harness.py -> build/lib/pyflakes/test copying pyflakes/test/test_is_literal.py -> build/lib/pyflakes/test copying pyflakes/test/test_type_annotations.py -> build/lib/pyflakes/test copying pyflakes/test/test_match.py -> build/lib/pyflakes/test copying pyflakes/test/test_api.py -> build/lib/pyflakes/test copying pyflakes/test/test_imports.py -> build/lib/pyflakes/test copying pyflakes/test/test_dict.py -> build/lib/pyflakes/test copying pyflakes/test/test_doctests.py -> build/lib/pyflakes/test copying pyflakes/test/test_code_segment.py -> build/lib/pyflakes/test /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3.11/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! ir_d = dist.fetch_build_eggs(dist.install_requires) WARNING: The wheel package is not available. /usr/lib/python3.11/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! tr_d = dist.fetch_build_eggs(dist.tests_require or []) WARNING: The wheel package is not available. /usr/lib/python3.11/site-packages/setuptools/command/test.py:196: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! er_d = dist.fetch_build_eggs( WARNING: The wheel package is not available. running egg_info writing pyflakes.egg-info/PKG-INFO writing dependency_links to pyflakes.egg-info/dependency_links.txt writing entry points to pyflakes.egg-info/entry_points.txt writing top-level names to pyflakes.egg-info/top_level.txt reading manifest file 'pyflakes.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'pyflakes.egg-info/SOURCES.txt' running build_ext test_attrAugmentedAssignment (pyflakes.test.test_other.Test.test_attrAugmentedAssignment) Augmented assignment of attributes is supported. ... ok test_breakInsideLoop (pyflakes.test.test_other.Test.test_breakInsideLoop) ... ok test_breakOutsideLoop (pyflakes.test.test_other.Test.test_breakOutsideLoop) ... ok test_classFunctionDecorator (pyflakes.test.test_other.Test.test_classFunctionDecorator) Test that shadowing a function definition in a class suite with a ... ok test_classNameDefinedPreviously (pyflakes.test.test_other.Test.test_classNameDefinedPreviously) If a class name is used in the body of that class's definition and ... ok test_classNameUndefinedInClassBody (pyflakes.test.test_other.Test.test_classNameUndefinedInClassBody) If a class name is used in the body of that class's definition and ... ok test_classRedefinedAsFunction (pyflakes.test.test_other.Test.test_classRedefinedAsFunction) If a class is redefined as a function, a warning is emitted. ... ok test_classRedefinition (pyflakes.test.test_other.Test.test_classRedefinition) If a class is defined twice in the same module, a warning is emitted. ... ok test_classWithReturn (pyflakes.test.test_other.Test.test_classWithReturn) If a return is used inside a class, a warning is emitted. ... ok test_classWithYield (pyflakes.test.test_other.Test.test_classWithYield) If a yield is used inside a class, a warning is emitted. ... ok test_classWithYieldFrom (pyflakes.test.test_other.Test.test_classWithYieldFrom) If a yield from is used inside a class, a warning is emitted. ... ok test_comparison (pyflakes.test.test_other.Test.test_comparison) If a defined name is used on either side of any of the six comparison ... ok test_containment (pyflakes.test.test_other.Test.test_containment) If a defined name is used on either side of a containment test, no ... ok test_continueInFinally (pyflakes.test.test_other.Test.test_continueInFinally) ... skipped 'Python <= 3.8 only' test_continueInsideLoop (pyflakes.test.test_other.Test.test_continueInsideLoop) ... ok test_continueOutsideLoop (pyflakes.test.test_other.Test.test_continueOutsideLoop) ... ok test_defaultExceptLast (pyflakes.test.test_other.Test.test_defaultExceptLast) A default except block should be last. ... ok test_defaultExceptNotLast (pyflakes.test.test_other.Test.test_defaultExceptNotLast) ... ok test_doubleAssignment (pyflakes.test.test_other.Test.test_doubleAssignment) If a variable is re-assigned to without being used, no warning is ... skipped 'todo: Too hard to make this warn but other cases stay silent' test_doubleAssignmentConditionally (pyflakes.test.test_other.Test.test_doubleAssignmentConditionally) If a variable is re-assigned within a conditional, no warning is ... ok test_doubleAssignmentWithUse (pyflakes.test.test_other.Test.test_doubleAssignmentWithUse) If a variable is re-assigned to after being used, no warning is ... ok test_duplicateArgs (pyflakes.test.test_other.Test.test_duplicateArgs) ... ok test_ellipsis (pyflakes.test.test_other.Test.test_ellipsis) Ellipsis in a slice is supported. ... ok test_extendedSlice (pyflakes.test.test_other.Test.test_extendedSlice) Extended slices are supported. ... ok test_functionDecorator (pyflakes.test.test_other.Test.test_functionDecorator) Test that shadowing a function definition with a decorated version of ... ok test_functionRedefinedAsClass (pyflakes.test.test_other.Test.test_functionRedefinedAsClass) If a function is redefined as a class, a warning is emitted. ... ok test_function_arguments (pyflakes.test.test_other.Test.test_function_arguments) Test to traverse ARG and ARGUMENT handler ... ok test_function_arguments_python3 (pyflakes.test.test_other.Test.test_function_arguments_python3) ... ok test_globalDeclaredInDifferentScope (pyflakes.test.test_other.Test.test_globalDeclaredInDifferentScope) A 'global' can be declared in one scope and reused in another. ... ok test_identity (pyflakes.test.test_other.Test.test_identity) If a defined name is used on either side of an identity test, no ... ok test_localReferencedBeforeAssignment (pyflakes.test.test_other.Test.test_localReferencedBeforeAssignment) ... ok test_loopControl (pyflakes.test.test_other.Test.test_loopControl) break and continue statements are supported. ... ok test_modernProperty (pyflakes.test.test_other.Test.test_modernProperty) ... ok test_moduleWithReturn (pyflakes.test.test_other.Test.test_moduleWithReturn) If a return is used at the module level, a warning is emitted. ... ok test_moduleWithYield (pyflakes.test.test_other.Test.test_moduleWithYield) If a yield is used at the module level, a warning is emitted. ... ok test_moduleWithYieldFrom (pyflakes.test.test_other.Test.test_moduleWithYieldFrom) If a yield from is used at the module level, a warning is emitted. ... ok test_redefinedClassFunction (pyflakes.test.test_other.Test.test_redefinedClassFunction) Test that shadowing a function definition in a class suite with another ... ok test_redefinedFunction (pyflakes.test.test_other.Test.test_redefinedFunction) Test that shadowing a function definition with another one raises a ... ok test_redefinedIfElseFunction (pyflakes.test.test_other.Test.test_redefinedIfElseFunction) Test that shadowing a function definition twice in an if ... ok test_redefinedIfElseInListComp (pyflakes.test.test_other.Test.test_redefinedIfElseInListComp) Test that shadowing a variable in a list comprehension in ... ok test_redefinedIfFunction (pyflakes.test.test_other.Test.test_redefinedIfFunction) Test that shadowing a function definition within an if block ... ok test_redefinedInDictComprehension (pyflakes.test.test_other.Test.test_redefinedInDictComprehension) Test that reusing a variable in a dict comprehension does not raise ... ok test_redefinedInGenerator (pyflakes.test.test_other.Test.test_redefinedInGenerator) Test that reusing a variable in a generator does not raise ... ok test_redefinedInSetComprehension (pyflakes.test.test_other.Test.test_redefinedInSetComprehension) Test that reusing a variable in a set comprehension does not raise ... ok test_redefinedTryExceptFunction (pyflakes.test.test_other.Test.test_redefinedTryExceptFunction) Test that shadowing a function definition twice in try ... ok test_redefinedTryFunction (pyflakes.test.test_other.Test.test_redefinedTryFunction) Test that shadowing a function definition within a try block ... ok test_redefinedUnderscoreFunction (pyflakes.test.test_other.Test.test_redefinedUnderscoreFunction) Test that shadowing a function definition named with underscore doesn't ... ok test_redefinedUnderscoreImportation (pyflakes.test.test_other.Test.test_redefinedUnderscoreImportation) Test that shadowing an underscore importation raises a warning. ... ok test_starredAssignmentErrors (pyflakes.test.test_other.Test.test_starredAssignmentErrors) SyntaxErrors (not encoded in the ast) surrounding Python 3 extended ... ok test_starredAssignmentNoError (pyflakes.test.test_other.Test.test_starredAssignmentNoError) Python 3 extended iterable unpacking ... ok test_unaryPlus (pyflakes.test.test_other.Test.test_unaryPlus) Don't die on unary +. ... ok test_undefinedBaseClass (pyflakes.test.test_other.Test.test_undefinedBaseClass) If a name in the base list of a class definition is undefined, a ... ok test_varAugmentedAssignment (pyflakes.test.test_other.Test.test_varAugmentedAssignment) Augmented assignment of a variable is supported. ... ok test_asyncDef (pyflakes.test.test_other.TestAsyncStatements.test_asyncDef) ... ok test_asyncDefAwait (pyflakes.test.test_other.TestAsyncStatements.test_asyncDefAwait) ... ok test_asyncDefUndefined (pyflakes.test.test_other.TestAsyncStatements.test_asyncDefUndefined) ... ok test_asyncFor (pyflakes.test.test_other.TestAsyncStatements.test_asyncFor) ... ok test_asyncForUnderscoreLoopVar (pyflakes.test.test_other.TestAsyncStatements.test_asyncForUnderscoreLoopVar) ... ok test_asyncWith (pyflakes.test.test_other.TestAsyncStatements.test_asyncWith) ... ok test_asyncWithItem (pyflakes.test.test_other.TestAsyncStatements.test_asyncWithItem) ... ok test_continueInAsyncForFinally (pyflakes.test.test_other.TestAsyncStatements.test_continueInAsyncForFinally) ... skipped 'Python <= 3.8 only' test_formatstring (pyflakes.test.test_other.TestAsyncStatements.test_formatstring) ... ok test_loopControlInAsyncFor (pyflakes.test.test_other.TestAsyncStatements.test_loopControlInAsyncFor) ... ok test_loopControlInAsyncForElse (pyflakes.test.test_other.TestAsyncStatements.test_loopControlInAsyncForElse) ... ok test_matmul (pyflakes.test.test_other.TestAsyncStatements.test_matmul) ... ok test_raise_notimplemented (pyflakes.test.test_other.TestAsyncStatements.test_raise_notimplemented) ... ok test_invalid_print_when_imported_from_future (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_invalid_print_when_imported_from_future) ... ok test_print_as_condition_test (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_print_as_condition_test) ... ok test_print_augmented_assign (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_print_augmented_assign) ... ok test_print_function_assignment (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_print_function_assignment) A valid assignment, tested for catching false positives. ... ok test_print_in_lambda (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_print_in_lambda) ... ok test_print_returned_in_function (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_print_returned_in_function) ... ok test_valid_print (pyflakes.test.test_other.TestIncompatiblePrintOperator.test_valid_print) ... ok test_f_string_without_placeholders (pyflakes.test.test_other.TestStringFormatting.test_f_string_without_placeholders) ... ok test_invalid_dot_format_calls (pyflakes.test.test_other.TestStringFormatting.test_invalid_dot_format_calls) ... ok test_invalid_percent_format_calls (pyflakes.test.test_other.TestStringFormatting.test_invalid_percent_format_calls) ... ok test_ok_percent_format_cannot_determine_element_count (pyflakes.test.test_other.TestStringFormatting.test_ok_percent_format_cannot_determine_element_count) ... ok test_assert_static (pyflakes.test.test_other.TestUnusedAssignment.test_assert_static) An assert of a static value is not an error. ... ok test_assert_tuple (pyflakes.test.test_other.TestUnusedAssignment.test_assert_tuple) An assert of a non-empty tuple is always True. ... ok test_assert_tuple_empty (pyflakes.test.test_other.TestUnusedAssignment.test_assert_tuple_empty) An assert of an empty tuple is always False. ... ok test_assert_with_message (pyflakes.test.test_other.TestUnusedAssignment.test_assert_with_message) An assert with a message is not an error. ... ok test_assert_without_message (pyflakes.test.test_other.TestUnusedAssignment.test_assert_without_message) An assert without a message is not an error. ... ok test_assignInForLoop (pyflakes.test.test_other.TestUnusedAssignment.test_assignInForLoop) Don't warn when a variable in a for loop is assigned to but not used. ... ok test_assignInListComprehension (pyflakes.test.test_other.TestUnusedAssignment.test_assignInListComprehension) Don't warn when a variable in a list comprehension is ... ok test_assignToGlobal (pyflakes.test.test_other.TestUnusedAssignment.test_assignToGlobal) Assigning to a global and then not using that global is perfectly ... ok test_assignToMember (pyflakes.test.test_other.TestUnusedAssignment.test_assignToMember) Assigning to a member of another object and then not using that member ... ok test_assignToNonlocal (pyflakes.test.test_other.TestUnusedAssignment.test_assignToNonlocal) Assigning to a nonlocal and then not using that binding is perfectly ... ok test_assign_expr (pyflakes.test.test_other.TestUnusedAssignment.test_assign_expr) Test PEP 572 assignment expressions are treated as usage / write. ... ok test_assign_expr_generator_scope (pyflakes.test.test_other.TestUnusedAssignment.test_assign_expr_generator_scope) Test assignment expressions in generator expressions. ... ok test_assign_expr_nested (pyflakes.test.test_other.TestUnusedAssignment.test_assign_expr_nested) Test assignment expressions in nested expressions. ... ok test_assignmentInsideLoop (pyflakes.test.test_other.TestUnusedAssignment.test_assignmentInsideLoop) Don't warn when a variable assignment occurs lexically after its use. ... ok test_augmentedAssignmentImportedFunctionCall (pyflakes.test.test_other.TestUnusedAssignment.test_augmentedAssignmentImportedFunctionCall) Consider a function that is called on the right part of an ... ok test_closedOver (pyflakes.test.test_other.TestUnusedAssignment.test_closedOver) Don't warn when the assignment is used in an inner function. ... ok test_dictComprehension (pyflakes.test.test_other.TestUnusedAssignment.test_dictComprehension) Dict comprehensions are properly handled. ... ok test_doubleClosedOver (pyflakes.test.test_other.TestUnusedAssignment.test_doubleClosedOver) Don't warn when the assignment is used in an inner function, even if ... ok test_exceptWithoutNameInFunction (pyflakes.test.test_other.TestUnusedAssignment.test_exceptWithoutNameInFunction) Don't issue false warning when an unnamed exception is used. ... ok test_exceptWithoutNameInFunctionTuple (pyflakes.test.test_other.TestUnusedAssignment.test_exceptWithoutNameInFunctionTuple) Don't issue false warning when an unnamed exception is used. ... ok test_exceptionUnusedInExcept (pyflakes.test.test_other.TestUnusedAssignment.test_exceptionUnusedInExcept) ... ok test_exceptionUnusedInExceptInFunction (pyflakes.test.test_other.TestUnusedAssignment.test_exceptionUnusedInExceptInFunction) ... ok test_exceptionUsedInExcept (pyflakes.test.test_other.TestUnusedAssignment.test_exceptionUsedInExcept) ... ok test_exception_unused_in_except_star (pyflakes.test.test_other.TestUnusedAssignment.test_exception_unused_in_except_star) ... ok test_f_string (pyflakes.test.test_other.TestUnusedAssignment.test_f_string) Test PEP 498 f-strings are treated as a usage. ... ok test_generatorExpression (pyflakes.test.test_other.TestUnusedAssignment.test_generatorExpression) Don't warn when a variable in a generator expression is ... ok test_if_tuple (pyflakes.test.test_other.TestUnusedAssignment.test_if_tuple) Test C{if (foo,)} conditions. ... ok test_ifexp (pyflakes.test.test_other.TestUnusedAssignment.test_ifexp) Test C{foo if bar else baz} statements. ... ok test_listUnpacking (pyflakes.test.test_other.TestUnusedAssignment.test_listUnpacking) Don't warn when a variable included in list unpacking is unused. ... ok test_setComprehensionAndLiteral (pyflakes.test.test_other.TestUnusedAssignment.test_setComprehensionAndLiteral) Set comprehensions are properly handled. ... ok test_tracebackhideSpecialVariable (pyflakes.test.test_other.TestUnusedAssignment.test_tracebackhideSpecialVariable) Do not warn about unused local variable __tracebackhide__, which is ... ok test_tupleUnpacking (pyflakes.test.test_other.TestUnusedAssignment.test_tupleUnpacking) Don't warn when a variable included in tuple unpacking is unused. It's ... ok test_unusedReassignedVariable (pyflakes.test.test_other.TestUnusedAssignment.test_unusedReassignedVariable) Shadowing a used variable can still raise an UnusedVariable warning. ... skipped "todo: Difficult because it doesn't apply in the context of a loop" test_unusedUnderscoreVariable (pyflakes.test.test_other.TestUnusedAssignment.test_unusedUnderscoreVariable) Don't warn when the magic "_" (underscore) variable is unused. ... ok test_unusedVariable (pyflakes.test.test_other.TestUnusedAssignment.test_unusedVariable) Warn when a variable in a function is assigned a value that's never ... ok test_unusedVariableAsLocals (pyflakes.test.test_other.TestUnusedAssignment.test_unusedVariableAsLocals) Using locals() it is perfectly valid to have unused variables ... ok test_unusedVariableNoLocals (pyflakes.test.test_other.TestUnusedAssignment.test_unusedVariableNoLocals) Using locals() in wrong scope should not matter ... ok test_variableUsedInLoop (pyflakes.test.test_other.TestUnusedAssignment.test_variableUsedInLoop) Shadowing a used variable cannot raise an UnusedVariable warning in the ... ok test_withStatementAttributeName (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementAttributeName) No warnings are emitted for using an attribute as the target of a ... ok test_withStatementComplicatedTarget (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementComplicatedTarget) If the target of a C{with} statement uses any or all of the valid forms ... ok test_withStatementListNames (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementListNames) No warnings are emitted for using any of the list of names defined by a ... ok test_withStatementNameDefinedInBody (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementNameDefinedInBody) A name defined in the body of a C{with} statement can be used after ... ok test_withStatementNoNames (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementNoNames) No warnings are emitted for using inside or after a nameless C{with} ... ok test_withStatementSingleName (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementSingleName) No warnings are emitted for using a name defined by a C{with} statement ... ok test_withStatementSingleNameRedefined (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementSingleNameRedefined) A redefined name warning is emitted if a name bound by an import is ... ok test_withStatementSingleNameUndefined (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementSingleNameUndefined) An undefined name warning is emitted if the name first defined by a ... ok test_withStatementSubscript (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementSubscript) No warnings are emitted for using a subscript as the target of a ... ok test_withStatementSubscriptUndefined (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementSubscriptUndefined) An undefined name warning is emitted if the subscript used as the ... ok test_withStatementTupleNames (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementTupleNames) No warnings are emitted for using any of the tuple of names defined by ... ok test_withStatementTupleNamesRedefined (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementTupleNamesRedefined) A redefined name warning is emitted if a name bound by an import is ... ok test_withStatementTupleNamesUndefined (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementTupleNamesUndefined) An undefined name warning is emitted if a name first defined by the ... ok test_withStatementUndefinedInExpression (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementUndefinedInExpression) An undefined name warning is emitted if a name in the I{test} ... ok test_withStatementUndefinedInside (pyflakes.test.test_other.TestUnusedAssignment.test_withStatementUndefinedInside) An undefined name warning is emitted if a name is used inside the ... ok test_yieldFromUndefined (pyflakes.test.test_other.TestUnusedAssignment.test_yieldFromUndefined) Test C{yield from} statement ... ok test_impossibleContext (pyflakes.test.test_undefined_names.NameTests.test_impossibleContext) A Name node with an unrecognized context results in a RuntimeError being ... ok test_annotationUndefined (pyflakes.test.test_undefined_names.Test.test_annotationUndefined) Undefined annotations. ... ok test_badNestedClass (pyflakes.test.test_undefined_names.Test.test_badNestedClass) Free variables in nested classes must bind at class creation. ... ok test_builtinWindowsError (pyflakes.test.test_undefined_names.Test.test_builtinWindowsError) C{WindowsError} is sometimes a builtin name, so no warning is emitted ... ok test_builtins (pyflakes.test.test_undefined_names.Test.test_builtins) ... ok test_definedAsStarArgs (pyflakes.test.test_undefined_names.Test.test_definedAsStarArgs) Star and double-star arg names are defined. ... ok test_definedAsStarUnpack (pyflakes.test.test_undefined_names.Test.test_definedAsStarUnpack) Star names in unpack are defined. ... ok test_definedByGlobal (pyflakes.test.test_undefined_names.Test.test_definedByGlobal) "global" can make an otherwise undefined name in another function ... ok test_definedByGlobalMultipleNames (pyflakes.test.test_undefined_names.Test.test_definedByGlobalMultipleNames) "global" can accept multiple names. ... ok test_definedFromLambdaInDictionaryComprehension (pyflakes.test.test_undefined_names.Test.test_definedFromLambdaInDictionaryComprehension) Defined name referenced from a lambda function within a dict/set ... ok test_definedFromLambdaInGenerator (pyflakes.test.test_undefined_names.Test.test_definedFromLambdaInGenerator) Defined name referenced from a lambda function within a generator ... ok test_definedInClass (pyflakes.test.test_undefined_names.Test.test_definedInClass) Defined name for generator expressions and dict/set comprehension. ... ok test_definedInClassNested (pyflakes.test.test_undefined_names.Test.test_definedInClassNested) Defined name for nested generator expressions in a class. ... ok test_definedInGenExp (pyflakes.test.test_undefined_names.Test.test_definedInGenExp) Using the loop variable of a generator expression results in no ... ok test_definedInListComp (pyflakes.test.test_undefined_names.Test.test_definedInListComp) ... ok test_del (pyflakes.test.test_undefined_names.Test.test_del) Del deletes bindings. ... ok test_delConditional (pyflakes.test.test_undefined_names.Test.test_delConditional) Ignores conditional bindings deletion. ... ok test_delConditionalNested (pyflakes.test.test_undefined_names.Test.test_delConditionalNested) Ignored conditional bindings deletion even if they are nested in other ... ok test_delExceptionInExcept (pyflakes.test.test_undefined_names.Test.test_delExceptionInExcept) The exception name can be deleted in the except: block. ... ok test_delGlobal (pyflakes.test.test_undefined_names.Test.test_delGlobal) Del a global binding from a function. ... ok test_delUndefined (pyflakes.test.test_undefined_names.Test.test_delUndefined) Del an undefined name. ... ok test_delWhile (pyflakes.test.test_undefined_names.Test.test_delWhile) Ignore bindings deletion if called inside the body of a while ... ok test_delWhileNested (pyflakes.test.test_undefined_names.Test.test_delWhileNested) Ignore bindings deletions if node is part of while's test, even when ... ok test_delWhileTestUsage (pyflakes.test.test_undefined_names.Test.test_delWhileTestUsage) Ignore bindings deletion if called inside the body of a while ... ok test_doubleNestingReportsClosestName (pyflakes.test.test_undefined_names.Test.test_doubleNestingReportsClosestName) Test that referencing a local name in a nested scope that shadows a ... ok test_dunderClass (pyflakes.test.test_undefined_names.Test.test_dunderClass) ... ok test_functionsNeedGlobalScope (pyflakes.test.test_undefined_names.Test.test_functionsNeedGlobalScope) ... ok test_globalFromNestedScope (pyflakes.test.test_undefined_names.Test.test_globalFromNestedScope) Global names are available from nested scopes. ... ok test_globalImportStar (pyflakes.test.test_undefined_names.Test.test_globalImportStar) Can't find undefined names with import *. ... ok test_globalInGlobalScope (pyflakes.test.test_undefined_names.Test.test_globalInGlobalScope) A global statement in the global scope is ignored. ... ok test_global_reset_name_only (pyflakes.test.test_undefined_names.Test.test_global_reset_name_only) A global statement does not prevent other names being undefined. ... ok test_intermediateClassScopeIgnored (pyflakes.test.test_undefined_names.Test.test_intermediateClassScopeIgnored) If a name defined in an enclosing scope is shadowed by a local variable ... ok test_keywordOnlyArgs (pyflakes.test.test_undefined_names.Test.test_keywordOnlyArgs) Keyword-only arg names are defined. ... ok test_keywordOnlyArgsUndefined (pyflakes.test.test_undefined_names.Test.test_keywordOnlyArgsUndefined) Typo in kwonly name. ... ok test_laterRedefinedGlobalFromNestedScope (pyflakes.test.test_undefined_names.Test.test_laterRedefinedGlobalFromNestedScope) Test that referencing a local name that shadows a global, before it is ... ok test_laterRedefinedGlobalFromNestedScope2 (pyflakes.test.test_undefined_names.Test.test_laterRedefinedGlobalFromNestedScope2) Test that referencing a local name in a nested scope that shadows a ... ok test_laterRedefinedGlobalFromNestedScope3 (pyflakes.test.test_undefined_names.Test.test_laterRedefinedGlobalFromNestedScope3) Test that referencing a local name in a nested scope that shadows a ... ok test_magicGlobalsBuiltins (pyflakes.test.test_undefined_names.Test.test_magicGlobalsBuiltins) Use of the C{__builtins__} magic global should not emit an undefined ... ok test_magicGlobalsFile (pyflakes.test.test_undefined_names.Test.test_magicGlobalsFile) Use of the C{__file__} magic global should not emit an undefined name ... ok test_magicGlobalsName (pyflakes.test.test_undefined_names.Test.test_magicGlobalsName) Use of the C{__name__} magic global should not emit an undefined name ... ok test_magicGlobalsPath (pyflakes.test.test_undefined_names.Test.test_magicGlobalsPath) Use of the C{__path__} magic global should not emit an undefined name ... ok test_magicModuleInClassScope (pyflakes.test.test_undefined_names.Test.test_magicModuleInClassScope) Use of the C{__module__} magic builtin should not emit an undefined ... ok test_magicQualnameInClassScope (pyflakes.test.test_undefined_names.Test.test_magicQualnameInClassScope) Use of the C{__qualname__} magic builtin should not emit an undefined ... ok test_metaClassUndefined (pyflakes.test.test_undefined_names.Test.test_metaClassUndefined) ... ok test_moduleAnnotations (pyflakes.test.test_undefined_names.Test.test_moduleAnnotations) Use of the C{__annotations__} in module scope should not emit ... ok test_namesDeclaredInExceptBlocks (pyflakes.test.test_undefined_names.Test.test_namesDeclaredInExceptBlocks) Locals declared in except: blocks can be used after the block. ... ok test_nestedClass (pyflakes.test.test_undefined_names.Test.test_nestedClass) Nested classes can access enclosing scope. ... ok test_undefined (pyflakes.test.test_undefined_names.Test.test_undefined) ... ok test_undefinedAugmentedAssignment (pyflakes.test.test_undefined_names.Test.test_undefinedAugmentedAssignment) ... ok test_undefinedExceptionName (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionName) Exception names can't be used after the except: block. ... ok test_undefinedExceptionNameObscuringGlobalVariable (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringGlobalVariable) Exception names obscure globals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringGlobalVariable2 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringGlobalVariable2) Exception names obscure globals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringGlobalVariableFalsePositive1 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringGlobalVariableFalsePositive1) Exception names obscure globals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringGlobalVariableFalsePositive2 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringGlobalVariableFalsePositive2) Exception names obscure globals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringLocalVariable (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringLocalVariable) Exception names obscure locals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringLocalVariable2 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringLocalVariable2) Exception names are unbound after the `except:` block. ... ok test_undefinedExceptionNameObscuringLocalVariableFalsePositive1 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringLocalVariableFalsePositive1) Exception names obscure locals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringLocalVariableFalsePositive2 (pyflakes.test.test_undefined_names.Test.test_undefinedExceptionNameObscuringLocalVariableFalsePositive2) Exception names obscure locals, can't be used after. Unless. ... ok test_undefinedFromLambdaInComprehension (pyflakes.test.test_undefined_names.Test.test_undefinedFromLambdaInComprehension) Undefined name referenced from a lambda function within a generator ... ok test_undefinedFromLambdaInDictionaryComprehension (pyflakes.test.test_undefined_names.Test.test_undefinedFromLambdaInDictionaryComprehension) Undefined name referenced from a lambda function within a dict/set ... ok test_undefinedInGenExpNested (pyflakes.test.test_undefined_names.Test.test_undefinedInGenExpNested) The loop variables of generator expressions nested together are ... ok test_undefinedInListComp (pyflakes.test.test_undefined_names.Test.test_undefinedInListComp) ... ok test_undefinedInLoop (pyflakes.test.test_undefined_names.Test.test_undefinedInLoop) The loop variable is defined after the expression is computed. ... ok test_undefinedWithErrorHandler (pyflakes.test.test_undefined_names.Test.test_undefinedWithErrorHandler) Some compatibility code checks explicitly for NameError. ... ok test_unusedAsStarUnpack (pyflakes.test.test_undefined_names.Test.test_unusedAsStarUnpack) Star names in unpack are unused if RHS is a tuple/list literal. ... ok test_unused_global (pyflakes.test.test_undefined_names.Test.test_unused_global) An unused global statement does not define the name. ... skipped 'todo' test_usedAsStarUnpack (pyflakes.test.test_undefined_names.Test.test_usedAsStarUnpack) Star names in unpack are used if RHS is not a tuple/list literal. ... ok test_builtin_unbound_local (pyflakes.test.test_builtin.TestBuiltins.test_builtin_unbound_local) ... ok test_global_shadowing_builtin (pyflakes.test.test_builtin.TestBuiltins.test_global_shadowing_builtin) ... ok test_chained_operators_is_str (pyflakes.test.test_is_literal.Test.test_chained_operators_is_str) ... ok test_chained_operators_is_str_end (pyflakes.test.test_is_literal.Test.test_chained_operators_is_str_end) ... ok test_chained_operators_is_true (pyflakes.test.test_is_literal.Test.test_chained_operators_is_true) ... ok test_chained_operators_is_true_end (pyflakes.test.test_is_literal.Test.test_chained_operators_is_true_end) ... ok test_is_bytes (pyflakes.test.test_is_literal.Test.test_is_bytes) ... ok test_is_false (pyflakes.test.test_is_literal.Test.test_is_false) ... ok test_is_int (pyflakes.test.test_is_literal.Test.test_is_int) ... ok test_is_not_bytes (pyflakes.test.test_is_literal.Test.test_is_not_bytes) ... ok test_is_not_false (pyflakes.test.test_is_literal.Test.test_is_not_false) ... ok test_is_not_int (pyflakes.test.test_is_literal.Test.test_is_not_int) ... ok test_is_not_str (pyflakes.test.test_is_literal.Test.test_is_not_str) ... ok test_is_not_true (pyflakes.test.test_is_literal.Test.test_is_not_true) ... ok test_is_not_unicode (pyflakes.test.test_is_literal.Test.test_is_not_unicode) ... ok test_is_str (pyflakes.test.test_is_literal.Test.test_is_str) ... ok test_is_true (pyflakes.test.test_is_literal.Test.test_is_true) ... ok test_is_tuple_constant (pyflakes.test.test_is_literal.Test.test_is_tuple_constant) ... ok test_is_tuple_constant_containing_constants (pyflakes.test.test_is_literal.Test.test_is_tuple_constant_containing_constants) ... ok test_is_tuple_containing_variables_ok (pyflakes.test.test_is_literal.Test.test_is_tuple_containing_variables_ok) ... ok test_is_unicode (pyflakes.test.test_is_literal.Test.test_is_unicode) ... ok test_left_is_bytes (pyflakes.test.test_is_literal.Test.test_left_is_bytes) ... ok test_left_is_false (pyflakes.test.test_is_literal.Test.test_left_is_false) ... ok test_left_is_int (pyflakes.test.test_is_literal.Test.test_left_is_int) ... ok test_left_is_not_bytes (pyflakes.test.test_is_literal.Test.test_left_is_not_bytes) ... ok test_left_is_not_false (pyflakes.test.test_is_literal.Test.test_left_is_not_false) ... ok test_left_is_not_int (pyflakes.test.test_is_literal.Test.test_left_is_not_int) ... ok test_left_is_not_str (pyflakes.test.test_is_literal.Test.test_left_is_not_str) ... ok test_left_is_not_true (pyflakes.test.test_is_literal.Test.test_left_is_not_true) ... ok test_left_is_not_unicode (pyflakes.test.test_is_literal.Test.test_left_is_not_unicode) ... ok test_left_is_str (pyflakes.test.test_is_literal.Test.test_left_is_str) ... ok test_left_is_true (pyflakes.test.test_is_literal.Test.test_left_is_true) ... ok test_left_is_unicode (pyflakes.test.test_is_literal.Test.test_left_is_unicode) ... ok test_TypeAlias_annotations (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_TypeAlias_annotations) ... ok test_aliased_import (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_aliased_import) Detect when typing is imported as another name ... ok test_annotated_async_def (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotated_async_def) ... ok test_annotated_type_typing_missing_forward_type (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotated_type_typing_missing_forward_type) ... ok test_annotated_type_typing_missing_forward_type_multiple_args (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotated_type_typing_missing_forward_type_multiple_args) ... ok test_annotated_type_typing_with_string_args (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotated_type_typing_with_string_args) ... ok test_annotated_type_typing_with_string_args_in_union (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotated_type_typing_with_string_args_in_union) ... ok test_annotating_an_import (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_annotating_an_import) ... ok test_deferred_twice_annotation (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_deferred_twice_annotation) ... ok test_idomiatic_typing_guards (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_idomiatic_typing_guards) ... ok test_literal_type_some_other_module (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_literal_type_some_other_module) err on the side of false-negatives for types named Literal ... ok test_literal_type_typing (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_literal_type_typing) ... ok test_literal_type_typing_extensions (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_literal_type_typing_extensions) ... ok test_literal_union_type_typing (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_literal_union_type_typing) ... ok test_namedtypes_classes (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_namedtypes_classes) ... ok test_nested_partially_quoted_type_assignment (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_nested_partially_quoted_type_assignment) ... ok test_not_a_typing_overload (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_not_a_typing_overload) regression test for @typing.overload detection bug in 2.1.0 ... ok test_overload_in_class (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_overload_in_class) ... ok test_overload_with_multiple_decorators (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_overload_with_multiple_decorators) ... ok test_partial_string_annotations_with_future_annotations (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_partial_string_annotations_with_future_annotations) ... ok test_partially_quoted_type_annotation (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_partially_quoted_type_annotation) ... ok test_partially_quoted_type_assignment (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_partially_quoted_type_assignment) ... ok test_positional_only_argument_annotations (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_positional_only_argument_annotations) ... ok test_postponed_annotations (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_postponed_annotations) ... ok test_quoted_TypeVar_bound (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_quoted_TypeVar_bound) ... ok test_quoted_TypeVar_constraints (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_quoted_TypeVar_constraints) ... ok test_quoted_type_cast (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_quoted_type_cast) ... ok test_quoted_type_cast_renamed_import (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_quoted_type_cast_renamed_import) ... ok test_return_annotation_is_class_scope_variable (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_return_annotation_is_class_scope_variable) ... ok test_return_annotation_is_function_body_variable (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_return_annotation_is_function_body_variable) ... ok test_type_annotation_clobbers_all (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_type_annotation_clobbers_all) ... ok test_type_cast_literal_str_to_str (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_type_cast_literal_str_to_str) ... ok test_typednames_correct_forward_ref (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_typednames_correct_forward_ref) ... ok test_typingExtensionsOverload (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_typingExtensionsOverload) Allow intentional redefinitions via @typing_extensions.overload ... ok test_typingOverload (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_typingOverload) Allow intentional redefinitions via @typing.overload ... ok test_typingOverloadAsync (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_typingOverloadAsync) Allow intentional redefinitions via @typing.overload (async) ... ok test_typing_guard_for_protocol (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_typing_guard_for_protocol) ... ok test_unassigned_annotation_is_undefined (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_unassigned_annotation_is_undefined) ... ok test_unused_annotation (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_unused_annotation) ... ok test_variable_annotation_references_self_name_undefined (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_variable_annotation_references_self_name_undefined) ... ok test_variable_annotations (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_variable_annotations) ... ok test_variadic_generics (pyflakes.test.test_type_annotations.TestTypeAnnotations.test_variadic_generics) ... ok test_match_bindings (pyflakes.test.test_match.TestMatch.test_match_bindings) ... ok test_match_double_star (pyflakes.test.test_match.TestMatch.test_match_double_star) ... ok test_match_or_pattern (pyflakes.test.test_match.TestMatch.test_match_or_pattern) ... ok test_match_pattern_matched_class (pyflakes.test.test_match.TestMatch.test_match_pattern_matched_class) ... ok test_match_placeholder (pyflakes.test.test_match.TestMatch.test_match_placeholder) ... ok test_match_singleton (pyflakes.test.test_match.TestMatch.test_match_singleton) ... ok test_match_star (pyflakes.test.test_match.TestMatch.test_match_star) ... ok test_CRLFLineEndings (pyflakes.test.test_api.CheckTests.test_CRLFLineEndings) Source files with Windows CR LF line endings are parsed successfully. ... ok test_checkPathNonExisting (pyflakes.test.test_api.CheckTests.test_checkPathNonExisting) L{checkPath} handles non-existing files. ... ok test_checkRecursive (pyflakes.test.test_api.CheckTests.test_checkRecursive) L{checkRecursive} descends into each directory, finding Python files ... ok test_encodedFileUTF8 (pyflakes.test.test_api.CheckTests.test_encodedFileUTF8) If source file declares the correct encoding, no error is reported. ... ok test_eofSyntaxError (pyflakes.test.test_api.CheckTests.test_eofSyntaxError) The error reported for source files which end prematurely causing a ... ok test_eofSyntaxErrorWithTab (pyflakes.test.test_api.CheckTests.test_eofSyntaxErrorWithTab) The error reported for source files which end prematurely causing a ... ok test_invalidEscape (pyflakes.test.test_api.CheckTests.test_invalidEscape) The invalid escape syntax raises ValueError in Python 2 ... ok test_legacyScript (pyflakes.test.test_api.CheckTests.test_legacyScript) ... ok test_misencodedFileUTF16 (pyflakes.test.test_api.CheckTests.test_misencodedFileUTF16) If a source file contains bytes which cannot be decoded, this is ... ok test_misencodedFileUTF8 (pyflakes.test.test_api.CheckTests.test_misencodedFileUTF8) If a source file contains bytes which cannot be decoded, this is ... ok test_missingTrailingNewline (pyflakes.test.test_api.CheckTests.test_missingTrailingNewline) Source which doesn't end with a newline shouldn't cause any ... ok test_multilineSyntaxError (pyflakes.test.test_api.CheckTests.test_multilineSyntaxError) Source which includes a syntax error which results in the raised ... ok test_nonDefaultFollowsDefaultSyntaxError (pyflakes.test.test_api.CheckTests.test_nonDefaultFollowsDefaultSyntaxError) Source which has a non-default argument following a default argument ... ok test_nonKeywordAfterKeywordSyntaxError (pyflakes.test.test_api.CheckTests.test_nonKeywordAfterKeywordSyntaxError) Source which has a non-keyword argument after a keyword argument should ... ok test_permissionDenied (pyflakes.test.test_api.CheckTests.test_permissionDenied) If the source file is not readable, this is reported on standard ... ok test_pyflakesWarning (pyflakes.test.test_api.CheckTests.test_pyflakesWarning) If the source file has a pyflakes warning, this is reported as a ... ok test_stdinReportsErrors (pyflakes.test.test_api.CheckTests.test_stdinReportsErrors) L{check} reports syntax errors from stdin ... ok test_errors_io (pyflakes.test.test_api.IntegrationTests.test_errors_io) When pyflakes finds errors with the files it's given, (if they don't ... ok test_errors_syntax (pyflakes.test.test_api.IntegrationTests.test_errors_syntax) When pyflakes finds errors with the files it's given, (if they don't ... ok test_fileWithFlakes (pyflakes.test.test_api.IntegrationTests.test_fileWithFlakes) When a Python source file has warnings, the return code is non-zero ... ok test_goodFile (pyflakes.test.test_api.IntegrationTests.test_goodFile) When a Python source file is all good, the return code is zero and no ... ok test_readFromStdin (pyflakes.test.test_api.IntegrationTests.test_readFromStdin) If no arguments are passed to C{pyflakes} then it reads from stdin. ... ok test_emptyDirectory (pyflakes.test.test_api.TestIterSourceCode.test_emptyDirectory) There are no Python files in an empty directory. ... ok test_explicitFiles (pyflakes.test.test_api.TestIterSourceCode.test_explicitFiles) If one of the paths given to L{iterSourceCode} is not a directory but ... ok test_multipleDirectories (pyflakes.test.test_api.TestIterSourceCode.test_multipleDirectories) L{iterSourceCode} can be given multiple directories. It will recurse ... ok test_onlyPythonSource (pyflakes.test.test_api.TestIterSourceCode.test_onlyPythonSource) Files that are not Python source files are not included. ... ok test_recurses (pyflakes.test.test_api.TestIterSourceCode.test_recurses) If the Python files are hidden deep down in child directories, we will ... ok test_shebang (pyflakes.test.test_api.TestIterSourceCode.test_shebang) Find Python files that don't end with `.py`, but contain a Python ... ok test_singleFile (pyflakes.test.test_api.TestIterSourceCode.test_singleFile) If the directory contains one Python file, C{iterSourceCode} will find ... ok test_errors_io (pyflakes.test.test_api.TestMain.test_errors_io) When pyflakes finds errors with the files it's given, (if they don't ... ok test_errors_syntax (pyflakes.test.test_api.TestMain.test_errors_syntax) When pyflakes finds errors with the files it's given, (if they don't ... ok test_fileWithFlakes (pyflakes.test.test_api.TestMain.test_fileWithFlakes) When a Python source file has warnings, the return code is non-zero ... ok test_goodFile (pyflakes.test.test_api.TestMain.test_goodFile) When a Python source file is all good, the return code is zero and no ... ok test_readFromStdin (pyflakes.test.test_api.TestMain.test_readFromStdin) If no arguments are passed to C{pyflakes} then it reads from stdin. ... ok test_flake (pyflakes.test.test_api.TestReporter.test_flake) C{flake} reports a code warning from Pyflakes. It is exactly the ... ok test_multiLineSyntaxError (pyflakes.test.test_api.TestReporter.test_multiLineSyntaxError) If there's a multi-line syntax error, then we only report the last ... ok test_syntaxError (pyflakes.test.test_api.TestReporter.test_syntaxError) C{syntaxError} reports that there was a syntax error in the source ... ok test_syntaxErrorNoOffset (pyflakes.test.test_api.TestReporter.test_syntaxErrorNoOffset) C{syntaxError} doesn't include a caret pointing to the error if ... ok test_syntaxErrorNoText (pyflakes.test.test_api.TestReporter.test_syntaxErrorNoText) C{syntaxError} doesn't include text or nonsensical offsets if C{text} is C{None}. ... ok test_unexpectedError (pyflakes.test.test_api.TestReporter.test_unexpectedError) C{unexpectedError} reports an error processing a source file. ... ok test_aliasedImport (pyflakes.test.test_imports.Test.test_aliasedImport) ... ok test_aliasedImportShadowModule (pyflakes.test.test_imports.Test.test_aliasedImportShadowModule) Imported aliases can shadow the source of the import. ... ok test_assignRHSFirst (pyflakes.test.test_imports.Test.test_assignRHSFirst) ... ok test_assignedToGlobal (pyflakes.test.test_imports.Test.test_assignedToGlobal) Binding an import to a declared global should not cause it to be ... ok test_differentSubmoduleImport (pyflakes.test.test_imports.Test.test_differentSubmoduleImport) If two different submodules of a package are imported, no duplicate ... ok test_duplicateSubmoduleImport (pyflakes.test.test_imports.Test.test_duplicateSubmoduleImport) If a submodule of a package is imported twice, an unused import warning ... ok test_functionNamesAreBoundNow (pyflakes.test.test_imports.Test.test_functionNamesAreBoundNow) ... ok test_functionsRunLater (pyflakes.test.test_imports.Test.test_functionsRunLater) ... ok test_futureImport (pyflakes.test.test_imports.Test.test_futureImport) __future__ is special. ... ok test_futureImportFirst (pyflakes.test.test_imports.Test.test_futureImportFirst) __future__ imports must come before anything else. ... ok test_futureImportStar (pyflakes.test.test_imports.Test.test_futureImportStar) Importing '*' from __future__ fails. ... ok test_futureImportUndefined (pyflakes.test.test_imports.Test.test_futureImportUndefined) Importing undefined names from __future__ fails. ... ok test_futureImportUsed (pyflakes.test.test_imports.Test.test_futureImportUsed) __future__ is special, but names are injected in the namespace. ... ok test_ignoreNonImportRedefinitions (pyflakes.test.test_imports.Test.test_ignoreNonImportRedefinitions) ... ok test_importInClass (pyflakes.test.test_imports.Test.test_importInClass) Test that import within class is a locally scoped attribute. ... ok test_importStar (pyflakes.test.test_imports.Test.test_importStar) Use of import * at module level is reported. ... ok test_importStar_relative (pyflakes.test.test_imports.Test.test_importStar_relative) Use of import * from a relative import is reported. ... ok test_importUsedInMethodDefinition (pyflakes.test.test_imports.Test.test_importUsedInMethodDefinition) Method named 'foo' with default args referring to module named 'foo'. ... ok test_importedInClass (pyflakes.test.test_imports.Test.test_importedInClass) Imports in class scope can be used through self. ... ok test_importingForImportError (pyflakes.test.test_imports.Test.test_importingForImportError) ... skipped 'todo' test_localImportStar (pyflakes.test.test_imports.Test.test_localImportStar) import * is only allowed at module level. ... ok test_methodsDontUseClassScope (pyflakes.test.test_imports.Test.test_methodsDontUseClassScope) ... ok test_nestedClassAndFunctionScope (pyflakes.test.test_imports.Test.test_nestedClassAndFunctionScope) ... ok test_nestedFunctionsNestScope (pyflakes.test.test_imports.Test.test_nestedFunctionsNestScope) ... ok test_newAssignment (pyflakes.test.test_imports.Test.test_newAssignment) ... ok test_nonGlobalDoesNotRedefine (pyflakes.test.test_imports.Test.test_nonGlobalDoesNotRedefine) ... ok test_notUsedInNestedScope (pyflakes.test.test_imports.Test.test_notUsedInNestedScope) ... ok test_packageImport (pyflakes.test.test_imports.Test.test_packageImport) If a dotted name is imported and used, no warning is reported. ... ok test_redefinedButUsedLater (pyflakes.test.test_imports.Test.test_redefinedButUsedLater) Test that a global import which is redefined locally, ... ok test_redefinedByClass (pyflakes.test.test_imports.Test.test_redefinedByClass) ... ok test_redefinedByExcept (pyflakes.test.test_imports.Test.test_redefinedByExcept) ... ok test_redefinedByFor (pyflakes.test.test_imports.Test.test_redefinedByFor) ... ok test_redefinedByFunction (pyflakes.test.test_imports.Test.test_redefinedByFunction) ... ok test_redefinedBySubclass (pyflakes.test.test_imports.Test.test_redefinedBySubclass) If an imported name is redefined by a class statement which also uses ... ok test_redefinedIf (pyflakes.test.test_imports.Test.test_redefinedIf) Test that importing a module twice within an if ... ok test_redefinedIfElse (pyflakes.test.test_imports.Test.test_redefinedIfElse) Test that importing a module twice in if ... ok test_redefinedInClass (pyflakes.test.test_imports.Test.test_redefinedInClass) Test that shadowing a global with a class attribute does not produce a ... ok test_redefinedInNestedFunction (pyflakes.test.test_imports.Test.test_redefinedInNestedFunction) Test that shadowing a global name with a nested function definition ... ok test_redefinedInNestedFunctionTwice (pyflakes.test.test_imports.Test.test_redefinedInNestedFunctionTwice) Test that shadowing a global name with a nested function definition ... ok test_redefinedTry (pyflakes.test.test_imports.Test.test_redefinedTry) Test that importing a module twice in a try block ... ok test_redefinedTryElse (pyflakes.test.test_imports.Test.test_redefinedTryElse) ... ok test_redefinedTryExcept (pyflakes.test.test_imports.Test.test_redefinedTryExcept) Test that importing a module twice in a try ... ok test_redefinedTryExceptElse (pyflakes.test.test_imports.Test.test_redefinedTryExceptElse) ... ok test_redefinedTryExceptElseFinally (pyflakes.test.test_imports.Test.test_redefinedTryExceptElseFinally) ... ok test_redefinedTryExceptFinally (pyflakes.test.test_imports.Test.test_redefinedTryExceptFinally) ... ok test_redefinedTryExceptMulti (pyflakes.test.test_imports.Test.test_redefinedTryExceptMulti) ... ok test_redefinedTryNested (pyflakes.test.test_imports.Test.test_redefinedTryNested) Test that importing a module twice using a nested ... ok test_redefinedWhileUnused (pyflakes.test.test_imports.Test.test_redefinedWhileUnused) ... ok test_shadowedByFor (pyflakes.test.test_imports.Test.test_shadowedByFor) Test that shadowing a global name with a for loop variable generates a ... ok test_shadowedByForDeep (pyflakes.test.test_imports.Test.test_shadowedByForDeep) Test that shadowing a global name with a for loop variable nested in a ... ok test_shadowedByLambda (pyflakes.test.test_imports.Test.test_shadowedByLambda) ... ok test_shadowedByParameter (pyflakes.test.test_imports.Test.test_shadowedByParameter) ... ok test_tryingMultipleImports (pyflakes.test.test_imports.Test.test_tryingMultipleImports) ... ok test_unusedImport (pyflakes.test.test_imports.Test.test_unusedImport) ... ok test_unusedImport_relative (pyflakes.test.test_imports.Test.test_unusedImport_relative) ... ok test_unusedInNestedScope (pyflakes.test.test_imports.Test.test_unusedInNestedScope) ... ok test_unusedPackageImport (pyflakes.test.test_imports.Test.test_unusedPackageImport) If a dotted name is imported and not used, an unused import warning is ... ok test_unused_package_with_submodule_import (pyflakes.test.test_imports.Test.test_unused_package_with_submodule_import) When a package and its submodule are imported, only report once. ... ok test_usedAndGlobal (pyflakes.test.test_imports.Test.test_usedAndGlobal) A 'global' statement shadowing a used import should not cause it to be ... ok test_usedImport (pyflakes.test.test_imports.Test.test_usedImport) ... ok test_usedImport_relative (pyflakes.test.test_imports.Test.test_usedImport_relative) ... ok test_usedInAssert (pyflakes.test.test_imports.Test.test_usedInAssert) ... ok test_usedInAssignment (pyflakes.test.test_imports.Test.test_usedInAssignment) ... ok test_usedInAttributeAssign (pyflakes.test.test_imports.Test.test_usedInAttributeAssign) ... ok test_usedInCall (pyflakes.test.test_imports.Test.test_usedInCall) ... ok test_usedInClass (pyflakes.test.test_imports.Test.test_usedInClass) ... ok test_usedInClassBase (pyflakes.test.test_imports.Test.test_usedInClassBase) ... ok test_usedInDict (pyflakes.test.test_imports.Test.test_usedInDict) ... ok test_usedInElifConditional (pyflakes.test.test_imports.Test.test_usedInElifConditional) ... ok test_usedInElse (pyflakes.test.test_imports.Test.test_usedInElse) ... ok test_usedInExcept (pyflakes.test.test_imports.Test.test_usedInExcept) ... ok test_usedInExec (pyflakes.test.test_imports.Test.test_usedInExec) ... ok test_usedInFor (pyflakes.test.test_imports.Test.test_usedInFor) ... ok test_usedInForElse (pyflakes.test.test_imports.Test.test_usedInForElse) ... ok test_usedInFunction (pyflakes.test.test_imports.Test.test_usedInFunction) ... ok test_usedInGetattr (pyflakes.test.test_imports.Test.test_usedInGetattr) ... ok test_usedInGlobal (pyflakes.test.test_imports.Test.test_usedInGlobal) A 'global' statement shadowing an unused import should not prevent it ... ok test_usedInIfBody (pyflakes.test.test_imports.Test.test_usedInIfBody) ... ok test_usedInIfConditional (pyflakes.test.test_imports.Test.test_usedInIfConditional) ... ok test_usedInKeywordArg (pyflakes.test.test_imports.Test.test_usedInKeywordArg) ... ok test_usedInLambda (pyflakes.test.test_imports.Test.test_usedInLambda) ... ok test_usedInList (pyflakes.test.test_imports.Test.test_usedInList) ... ok test_usedInListComp (pyflakes.test.test_imports.Test.test_usedInListComp) ... ok test_usedInLogic (pyflakes.test.test_imports.Test.test_usedInLogic) ... ok test_usedInOperators (pyflakes.test.test_imports.Test.test_usedInOperators) ... ok test_usedInParameterDefault (pyflakes.test.test_imports.Test.test_usedInParameterDefault) ... ok test_usedInRaise (pyflakes.test.test_imports.Test.test_usedInRaise) ... ok test_usedInReturn (pyflakes.test.test_imports.Test.test_usedInReturn) ... ok test_usedInSlice (pyflakes.test.test_imports.Test.test_usedInSlice) ... ok test_usedInSliceObj (pyflakes.test.test_imports.Test.test_usedInSliceObj) ... ok test_usedInSubscript (pyflakes.test.test_imports.Test.test_usedInSubscript) ... ok test_usedInTry (pyflakes.test.test_imports.Test.test_usedInTry) ... ok test_usedInTryFinally (pyflakes.test.test_imports.Test.test_usedInTryFinally) ... ok test_usedInTuple (pyflakes.test.test_imports.Test.test_usedInTuple) ... ok test_usedInWhile (pyflakes.test.test_imports.Test.test_usedInWhile) ... ok test_usedInYield (pyflakes.test.test_imports.Test.test_usedInYield) ... ok test_used_package_with_submodule_import (pyflakes.test.test_imports.Test.test_used_package_with_submodule_import) Usage of package marks submodule imports as used. ... ok test_used_package_with_submodule_import_of_alias (pyflakes.test.test_imports.Test.test_used_package_with_submodule_import_of_alias) Usage of package by alias marks submodule imports as used. ... ok test_import_as (pyflakes.test.test_imports.TestImportationObject.test_import_as) ... ok test_import_basic (pyflakes.test.test_imports.TestImportationObject.test_import_basic) ... ok test_import_submodule (pyflakes.test.test_imports.TestImportationObject.test_import_submodule) ... ok test_import_submodule_as (pyflakes.test.test_imports.TestImportationObject.test_import_submodule_as) ... ok test_import_submodule_as_source_name (pyflakes.test.test_imports.TestImportationObject.test_import_submodule_as_source_name) ... ok test_importfrom_future (pyflakes.test.test_imports.TestImportationObject.test_importfrom_future) ... ok test_importfrom_member (pyflakes.test.test_imports.TestImportationObject.test_importfrom_member) ... ok test_importfrom_member_as (pyflakes.test.test_imports.TestImportationObject.test_importfrom_member_as) ... ok test_importfrom_relative (pyflakes.test.test_imports.TestImportationObject.test_importfrom_relative) ... ok test_importfrom_relative_parent (pyflakes.test.test_imports.TestImportationObject.test_importfrom_relative_parent) ... ok test_importfrom_relative_with_module (pyflakes.test.test_imports.TestImportationObject.test_importfrom_relative_with_module) ... ok test_importfrom_relative_with_module_as (pyflakes.test.test_imports.TestImportationObject.test_importfrom_relative_with_module_as) ... ok test_importfrom_star (pyflakes.test.test_imports.TestImportationObject.test_importfrom_star) ... ok test_importfrom_star_relative (pyflakes.test.test_imports.TestImportationObject.test_importfrom_star_relative) ... ok test_importfrom_submodule_member (pyflakes.test.test_imports.TestImportationObject.test_importfrom_submodule_member) ... ok test_importfrom_submodule_member_as (pyflakes.test.test_imports.TestImportationObject.test_importfrom_submodule_member_as) ... ok test_unusedImport_underscore (pyflakes.test.test_imports.TestImportationObject.test_unusedImport_underscore) The magic underscore var should be reported as unused when used as an ... ok test_all_mixed_attributes_and_strings (pyflakes.test.test_imports.TestSpecialAll.test_all_mixed_attributes_and_strings) ... ok test_all_with_attributes (pyflakes.test.test_imports.TestSpecialAll.test_all_with_attributes) ... ok test_all_with_attributes_added (pyflakes.test.test_imports.TestSpecialAll.test_all_with_attributes_added) ... ok test_all_with_names (pyflakes.test.test_imports.TestSpecialAll.test_all_with_names) ... ok test_augmentedAssignment (pyflakes.test.test_imports.TestSpecialAll.test_augmentedAssignment) The C{__all__} variable is defined incrementally. ... ok test_ignoredInClass (pyflakes.test.test_imports.TestSpecialAll.test_ignoredInClass) An C{__all__} definition in a class does not suppress unused import warnings. ... ok test_ignoredInFunction (pyflakes.test.test_imports.TestSpecialAll.test_ignoredInFunction) An C{__all__} definition does not suppress unused import warnings in a ... ok test_ignored_when_not_directly_assigned (pyflakes.test.test_imports.TestSpecialAll.test_ignored_when_not_directly_assigned) ... ok test_importStarExported (pyflakes.test.test_imports.TestSpecialAll.test_importStarExported) Report undefined if import * is used ... ok test_importStarNotExported (pyflakes.test.test_imports.TestSpecialAll.test_importStarNotExported) Report unused import when not needed to satisfy __all__. ... ok test_list_concatenation_assignment (pyflakes.test.test_imports.TestSpecialAll.test_list_concatenation_assignment) The C{__all__} variable is defined through list concatenation. ... ok test_redefinedByGenExp (pyflakes.test.test_imports.TestSpecialAll.test_redefinedByGenExp) Re-using a global name as the loop variable for a generator ... ok test_tuple_concatenation_assignment (pyflakes.test.test_imports.TestSpecialAll.test_tuple_concatenation_assignment) The C{__all__} variable is defined through tuple concatenation. ... ok test_unboundExported (pyflakes.test.test_imports.TestSpecialAll.test_unboundExported) If C{__all__} includes a name which is not bound, a warning is emitted. ... ok test_usedAsClassDecorator (pyflakes.test.test_imports.TestSpecialAll.test_usedAsClassDecorator) Using an imported name as a class decorator results in no warnings, ... ok test_usedAsDecorator (pyflakes.test.test_imports.TestSpecialAll.test_usedAsDecorator) Using a global name in a decorator statement results in no warnings, ... ok test_usedInGenExp (pyflakes.test.test_imports.TestSpecialAll.test_usedInGenExp) Using a global in a generator expression results in no warnings. ... ok test_warningSuppressed (pyflakes.test.test_imports.TestSpecialAll.test_warningSuppressed) If a name is imported and unused but is named in C{__all__}, no warning ... ok test_duplicate_key_float_and_int (pyflakes.test.test_dict.Test.test_duplicate_key_float_and_int) These do look like different values, but when it comes to their use as ... ok test_duplicate_keys (pyflakes.test.test_dict.Test.test_duplicate_keys) ... ok test_duplicate_keys_bools (pyflakes.test.test_dict.Test.test_duplicate_keys_bools) ... ok test_duplicate_keys_bools_false (pyflakes.test.test_dict.Test.test_duplicate_keys_bools_false) ... ok test_duplicate_keys_bytes_vs_unicode_py3 (pyflakes.test.test_dict.Test.test_duplicate_keys_bytes_vs_unicode_py3) ... ok test_duplicate_keys_in_function (pyflakes.test.test_dict.Test.test_duplicate_keys_in_function) ... ok test_duplicate_keys_in_lambda (pyflakes.test.test_dict.Test.test_duplicate_keys_in_lambda) ... ok test_duplicate_keys_ints (pyflakes.test.test_dict.Test.test_duplicate_keys_ints) ... ok test_duplicate_keys_none (pyflakes.test.test_dict.Test.test_duplicate_keys_none) ... ok test_duplicate_keys_tuples (pyflakes.test.test_dict.Test.test_duplicate_keys_tuples) ... ok test_duplicate_keys_tuples_int_and_float (pyflakes.test.test_dict.Test.test_duplicate_keys_tuples_int_and_float) ... ok test_duplicate_values_bytes_vs_unicode_py3 (pyflakes.test.test_dict.Test.test_duplicate_values_bytes_vs_unicode_py3) ... ok test_duplicate_variable_keys (pyflakes.test.test_dict.Test.test_duplicate_variable_keys) ... ok test_duplicate_variable_values (pyflakes.test.test_dict.Test.test_duplicate_variable_values) ... ok test_duplicate_variable_values_same_value (pyflakes.test.test_dict.Test.test_duplicate_variable_values_same_value) ... ok test_multiple_duplicate_keys (pyflakes.test.test_dict.Test.test_multiple_duplicate_keys) ... ok test_no_duplicate_key_error_same_value (pyflakes.test.test_dict.Test.test_no_duplicate_key_error_same_value) ... ok test_no_duplicate_key_errors (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors) ... ok test_no_duplicate_key_errors_bool_or_none (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_bool_or_none) ... ok test_no_duplicate_key_errors_func_call (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_func_call) ... ok test_no_duplicate_key_errors_instance_attributes (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_instance_attributes) ... ok test_no_duplicate_key_errors_ints (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_ints) ... ok test_no_duplicate_key_errors_tuples (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_tuples) ... ok test_no_duplicate_key_errors_vars (pyflakes.test.test_dict.Test.test_no_duplicate_key_errors_vars) ... ok test_no_duplicate_keys_tuples_same_first_element (pyflakes.test.test_dict.Test.test_no_duplicate_keys_tuples_same_first_element) ... ok test_doctestCanReferToClass (pyflakes.test.test_doctests.Test.test_doctestCanReferToClass) ... ok test_doctestCanReferToFunction (pyflakes.test.test_doctests.Test.test_doctestCanReferToFunction) ... ok test_globalUnderscoreInDoctest (pyflakes.test.test_doctests.Test.test_globalUnderscoreInDoctest) ... ok test_global_module_scope_pollution (pyflakes.test.test_doctests.Test.test_global_module_scope_pollution) Check that global in doctest does not pollute module scope. ... ok test_global_undefined (pyflakes.test.test_doctests.Test.test_global_undefined) ... ok test_ignore_nested_function (pyflakes.test.test_doctests.Test.test_ignore_nested_function) Doctest module does not process doctest in nested functions. ... ok test_importBeforeAndInDoctest (pyflakes.test.test_doctests.Test.test_importBeforeAndInDoctest) ... skipped 'todo' test_importBeforeDoctest (pyflakes.test.test_doctests.Test.test_importBeforeDoctest) ... ok test_importInDoctestAndAfter (pyflakes.test.test_doctests.Test.test_importInDoctestAndAfter) ... ok test_inaccessible_scope_class (pyflakes.test.test_doctests.Test.test_inaccessible_scope_class) Doctest may not access class scope. ... ok test_indentationErrorInDoctest (pyflakes.test.test_doctests.Test.test_indentationErrorInDoctest) ... ok test_nested_class (pyflakes.test.test_doctests.Test.test_nested_class) Doctest within nested class are processed. ... ok test_nested_doctest_ignored (pyflakes.test.test_doctests.Test.test_nested_doctest_ignored) Check that nested doctests are ignored. ... ok test_noOffsetSyntaxErrorInDoctest (pyflakes.test.test_doctests.Test.test_noOffsetSyntaxErrorInDoctest) ... ok test_offsetAfterDoctests (pyflakes.test.test_doctests.Test.test_offsetAfterDoctests) ... ok test_offsetInDoctests (pyflakes.test.test_doctests.Test.test_offsetInDoctests) ... ok test_offsetInLambdasInDoctests (pyflakes.test.test_doctests.Test.test_offsetInLambdasInDoctests) ... ok test_offsetWithMultiLineArgs (pyflakes.test.test_doctests.Test.test_offsetWithMultiLineArgs) ... ok test_scope_class (pyflakes.test.test_doctests.Test.test_scope_class) Check that a doctest is given a DoctestScope. ... ok test_singleUnderscoreInDoctest (pyflakes.test.test_doctests.Test.test_singleUnderscoreInDoctest) ... ok test_syntaxErrorInDoctest (pyflakes.test.test_doctests.Test.test_syntaxErrorInDoctest) ... ok test_aliasedImport (pyflakes.test.test_doctests.TestImports.test_aliasedImport) ... ok test_aliasedImportShadowModule (pyflakes.test.test_doctests.TestImports.test_aliasedImportShadowModule) Imported aliases can shadow the source of the import. ... ok test_assignRHSFirst (pyflakes.test.test_doctests.TestImports.test_assignRHSFirst) ... ok test_assignedToGlobal (pyflakes.test.test_doctests.TestImports.test_assignedToGlobal) Binding an import to a declared global should not cause it to be ... ok test_differentSubmoduleImport (pyflakes.test.test_doctests.TestImports.test_differentSubmoduleImport) If two different submodules of a package are imported, no duplicate ... ok test_duplicateSubmoduleImport (pyflakes.test.test_doctests.TestImports.test_duplicateSubmoduleImport) If a submodule of a package is imported twice, an unused import warning ... ok test_functionNamesAreBoundNow (pyflakes.test.test_doctests.TestImports.test_functionNamesAreBoundNow) ... ok test_functionsRunLater (pyflakes.test.test_doctests.TestImports.test_functionsRunLater) ... ok test_futureImport (pyflakes.test.test_doctests.TestImports.test_futureImport) __future__ is special. ... ok test_futureImportFirst (pyflakes.test.test_doctests.TestImports.test_futureImportFirst) __future__ imports must come before anything else. ... ok test_futureImportStar (pyflakes.test.test_doctests.TestImports.test_futureImportStar) Importing '*' from __future__ fails. ... ok test_futureImportUndefined (pyflakes.test.test_doctests.TestImports.test_futureImportUndefined) Importing undefined names from __future__ fails. ... ok test_futureImportUsed (pyflakes.test.test_doctests.TestImports.test_futureImportUsed) __future__ is special, but names are injected in the namespace. ... ok test_ignoreNonImportRedefinitions (pyflakes.test.test_doctests.TestImports.test_ignoreNonImportRedefinitions) ... ok test_importInClass (pyflakes.test.test_doctests.TestImports.test_importInClass) Test that import within class is a locally scoped attribute. ... ok test_importStar (pyflakes.test.test_doctests.TestImports.test_importStar) Use of import * at module level is reported. ... ok test_importStar_relative (pyflakes.test.test_doctests.TestImports.test_importStar_relative) Use of import * from a relative import is reported. ... ok test_importUsedInMethodDefinition (pyflakes.test.test_doctests.TestImports.test_importUsedInMethodDefinition) Method named 'foo' with default args referring to module named 'foo'. ... ok test_importedInClass (pyflakes.test.test_doctests.TestImports.test_importedInClass) Imports in class scope can be used through self. ... ok test_importingForImportError (pyflakes.test.test_doctests.TestImports.test_importingForImportError) ... skipped 'todo' test_localImportStar (pyflakes.test.test_doctests.TestImports.test_localImportStar) import * is only allowed at module level. ... ok test_methodsDontUseClassScope (pyflakes.test.test_doctests.TestImports.test_methodsDontUseClassScope) ... ok test_nestedClassAndFunctionScope (pyflakes.test.test_doctests.TestImports.test_nestedClassAndFunctionScope) ... ok test_nestedFunctionsNestScope (pyflakes.test.test_doctests.TestImports.test_nestedFunctionsNestScope) ... ok test_newAssignment (pyflakes.test.test_doctests.TestImports.test_newAssignment) ... ok test_nonGlobalDoesNotRedefine (pyflakes.test.test_doctests.TestImports.test_nonGlobalDoesNotRedefine) ... ok test_notUsedInNestedScope (pyflakes.test.test_doctests.TestImports.test_notUsedInNestedScope) ... ok test_packageImport (pyflakes.test.test_doctests.TestImports.test_packageImport) If a dotted name is imported and used, no warning is reported. ... ok test_redefinedButUsedLater (pyflakes.test.test_doctests.TestImports.test_redefinedButUsedLater) Test that a global import which is redefined locally, ... ok test_redefinedByClass (pyflakes.test.test_doctests.TestImports.test_redefinedByClass) ... ok test_redefinedByExcept (pyflakes.test.test_doctests.TestImports.test_redefinedByExcept) ... ok test_redefinedByFor (pyflakes.test.test_doctests.TestImports.test_redefinedByFor) ... ok test_redefinedByFunction (pyflakes.test.test_doctests.TestImports.test_redefinedByFunction) ... ok test_redefinedBySubclass (pyflakes.test.test_doctests.TestImports.test_redefinedBySubclass) If an imported name is redefined by a class statement which also uses ... ok test_redefinedIf (pyflakes.test.test_doctests.TestImports.test_redefinedIf) Test that importing a module twice within an if ... ok test_redefinedIfElse (pyflakes.test.test_doctests.TestImports.test_redefinedIfElse) Test that importing a module twice in if ... ok test_redefinedInClass (pyflakes.test.test_doctests.TestImports.test_redefinedInClass) Test that shadowing a global with a class attribute does not produce a ... ok test_redefinedInNestedFunction (pyflakes.test.test_doctests.TestImports.test_redefinedInNestedFunction) Test that shadowing a global name with a nested function definition ... ok test_redefinedInNestedFunctionTwice (pyflakes.test.test_doctests.TestImports.test_redefinedInNestedFunctionTwice) Test that shadowing a global name with a nested function definition ... ok test_redefinedTry (pyflakes.test.test_doctests.TestImports.test_redefinedTry) Test that importing a module twice in a try block ... ok test_redefinedTryElse (pyflakes.test.test_doctests.TestImports.test_redefinedTryElse) ... ok test_redefinedTryExcept (pyflakes.test.test_doctests.TestImports.test_redefinedTryExcept) Test that importing a module twice in a try ... ok test_redefinedTryExceptElse (pyflakes.test.test_doctests.TestImports.test_redefinedTryExceptElse) ... ok test_redefinedTryExceptElseFinally (pyflakes.test.test_doctests.TestImports.test_redefinedTryExceptElseFinally) ... ok test_redefinedTryExceptFinally (pyflakes.test.test_doctests.TestImports.test_redefinedTryExceptFinally) ... ok test_redefinedTryExceptMulti (pyflakes.test.test_doctests.TestImports.test_redefinedTryExceptMulti) ... ok test_redefinedTryNested (pyflakes.test.test_doctests.TestImports.test_redefinedTryNested) Test that importing a module twice using a nested ... ok test_redefinedWhileUnused (pyflakes.test.test_doctests.TestImports.test_redefinedWhileUnused) ... ok test_shadowedByFor (pyflakes.test.test_doctests.TestImports.test_shadowedByFor) Test that shadowing a global name with a for loop variable generates a ... ok test_shadowedByForDeep (pyflakes.test.test_doctests.TestImports.test_shadowedByForDeep) Test that shadowing a global name with a for loop variable nested in a ... ok test_shadowedByLambda (pyflakes.test.test_doctests.TestImports.test_shadowedByLambda) ... ok test_shadowedByParameter (pyflakes.test.test_doctests.TestImports.test_shadowedByParameter) ... ok test_tryingMultipleImports (pyflakes.test.test_doctests.TestImports.test_tryingMultipleImports) ... ok test_unusedImport (pyflakes.test.test_doctests.TestImports.test_unusedImport) ... ok test_unusedImport_relative (pyflakes.test.test_doctests.TestImports.test_unusedImport_relative) ... ok test_unusedInNestedScope (pyflakes.test.test_doctests.TestImports.test_unusedInNestedScope) ... ok test_unusedPackageImport (pyflakes.test.test_doctests.TestImports.test_unusedPackageImport) If a dotted name is imported and not used, an unused import warning is ... ok test_unused_package_with_submodule_import (pyflakes.test.test_doctests.TestImports.test_unused_package_with_submodule_import) When a package and its submodule are imported, only report once. ... ok test_usedAndGlobal (pyflakes.test.test_doctests.TestImports.test_usedAndGlobal) A 'global' statement shadowing a used import should not cause it to be ... ok test_usedImport (pyflakes.test.test_doctests.TestImports.test_usedImport) ... ok test_usedImport_relative (pyflakes.test.test_doctests.TestImports.test_usedImport_relative) ... ok test_usedInAssert (pyflakes.test.test_doctests.TestImports.test_usedInAssert) ... ok test_usedInAssignment (pyflakes.test.test_doctests.TestImports.test_usedInAssignment) ... ok test_usedInAttributeAssign (pyflakes.test.test_doctests.TestImports.test_usedInAttributeAssign) ... ok test_usedInCall (pyflakes.test.test_doctests.TestImports.test_usedInCall) ... ok test_usedInClass (pyflakes.test.test_doctests.TestImports.test_usedInClass) ... ok test_usedInClassBase (pyflakes.test.test_doctests.TestImports.test_usedInClassBase) ... ok test_usedInDict (pyflakes.test.test_doctests.TestImports.test_usedInDict) ... ok test_usedInElifConditional (pyflakes.test.test_doctests.TestImports.test_usedInElifConditional) ... ok test_usedInElse (pyflakes.test.test_doctests.TestImports.test_usedInElse) ... ok test_usedInExcept (pyflakes.test.test_doctests.TestImports.test_usedInExcept) ... ok test_usedInExec (pyflakes.test.test_doctests.TestImports.test_usedInExec) ... ok test_usedInFor (pyflakes.test.test_doctests.TestImports.test_usedInFor) ... ok test_usedInForElse (pyflakes.test.test_doctests.TestImports.test_usedInForElse) ... ok test_usedInFunction (pyflakes.test.test_doctests.TestImports.test_usedInFunction) ... ok test_usedInGetattr (pyflakes.test.test_doctests.TestImports.test_usedInGetattr) ... ok test_usedInGlobal (pyflakes.test.test_doctests.TestImports.test_usedInGlobal) A 'global' statement shadowing an unused import should not prevent it ... ok test_usedInIfBody (pyflakes.test.test_doctests.TestImports.test_usedInIfBody) ... ok test_usedInIfConditional (pyflakes.test.test_doctests.TestImports.test_usedInIfConditional) ... ok test_usedInKeywordArg (pyflakes.test.test_doctests.TestImports.test_usedInKeywordArg) ... ok test_usedInLambda (pyflakes.test.test_doctests.TestImports.test_usedInLambda) ... ok test_usedInList (pyflakes.test.test_doctests.TestImports.test_usedInList) ... ok test_usedInListComp (pyflakes.test.test_doctests.TestImports.test_usedInListComp) ... ok test_usedInLogic (pyflakes.test.test_doctests.TestImports.test_usedInLogic) ... ok test_usedInOperators (pyflakes.test.test_doctests.TestImports.test_usedInOperators) ... ok test_usedInParameterDefault (pyflakes.test.test_doctests.TestImports.test_usedInParameterDefault) ... ok test_usedInRaise (pyflakes.test.test_doctests.TestImports.test_usedInRaise) ... ok test_usedInReturn (pyflakes.test.test_doctests.TestImports.test_usedInReturn) ... ok test_usedInSlice (pyflakes.test.test_doctests.TestImports.test_usedInSlice) ... ok test_usedInSliceObj (pyflakes.test.test_doctests.TestImports.test_usedInSliceObj) ... ok test_usedInSubscript (pyflakes.test.test_doctests.TestImports.test_usedInSubscript) ... ok test_usedInTry (pyflakes.test.test_doctests.TestImports.test_usedInTry) ... ok test_usedInTryFinally (pyflakes.test.test_doctests.TestImports.test_usedInTryFinally) ... ok test_usedInTuple (pyflakes.test.test_doctests.TestImports.test_usedInTuple) ... ok test_usedInWhile (pyflakes.test.test_doctests.TestImports.test_usedInWhile) ... ok test_usedInYield (pyflakes.test.test_doctests.TestImports.test_usedInYield) ... ok test_used_package_with_submodule_import (pyflakes.test.test_doctests.TestImports.test_used_package_with_submodule_import) Usage of package marks submodule imports as used. ... ok test_used_package_with_submodule_import_of_alias (pyflakes.test.test_doctests.TestImports.test_used_package_with_submodule_import_of_alias) Usage of package by alias marks submodule imports as used. ... ok test_attrAugmentedAssignment (pyflakes.test.test_doctests.TestOther.test_attrAugmentedAssignment) Augmented assignment of attributes is supported. ... ok test_breakInsideLoop (pyflakes.test.test_doctests.TestOther.test_breakInsideLoop) ... ok test_breakOutsideLoop (pyflakes.test.test_doctests.TestOther.test_breakOutsideLoop) ... ok test_classFunctionDecorator (pyflakes.test.test_doctests.TestOther.test_classFunctionDecorator) Test that shadowing a function definition in a class suite with a ... ok test_classNameDefinedPreviously (pyflakes.test.test_doctests.TestOther.test_classNameDefinedPreviously) If a class name is used in the body of that class's definition and ... ok test_classNameUndefinedInClassBody (pyflakes.test.test_doctests.TestOther.test_classNameUndefinedInClassBody) If a class name is used in the body of that class's definition and ... ok test_classRedefinedAsFunction (pyflakes.test.test_doctests.TestOther.test_classRedefinedAsFunction) If a class is redefined as a function, a warning is emitted. ... ok test_classRedefinition (pyflakes.test.test_doctests.TestOther.test_classRedefinition) If a class is defined twice in the same module, a warning is emitted. ... ok test_classWithReturn (pyflakes.test.test_doctests.TestOther.test_classWithReturn) If a return is used inside a class, a warning is emitted. ... ok test_classWithYield (pyflakes.test.test_doctests.TestOther.test_classWithYield) If a yield is used inside a class, a warning is emitted. ... ok test_classWithYieldFrom (pyflakes.test.test_doctests.TestOther.test_classWithYieldFrom) If a yield from is used inside a class, a warning is emitted. ... ok test_comparison (pyflakes.test.test_doctests.TestOther.test_comparison) If a defined name is used on either side of any of the six comparison ... ok test_containment (pyflakes.test.test_doctests.TestOther.test_containment) If a defined name is used on either side of a containment test, no ... ok test_continueInFinally (pyflakes.test.test_doctests.TestOther.test_continueInFinally) ... skipped 'Python <= 3.8 only' test_continueInsideLoop (pyflakes.test.test_doctests.TestOther.test_continueInsideLoop) ... ok test_continueOutsideLoop (pyflakes.test.test_doctests.TestOther.test_continueOutsideLoop) ... ok test_defaultExceptLast (pyflakes.test.test_doctests.TestOther.test_defaultExceptLast) A default except block should be last. ... ok test_defaultExceptNotLast (pyflakes.test.test_doctests.TestOther.test_defaultExceptNotLast) ... ok test_doubleAssignment (pyflakes.test.test_doctests.TestOther.test_doubleAssignment) If a variable is re-assigned to without being used, no warning is ... skipped 'todo: Too hard to make this warn but other cases stay silent' test_doubleAssignmentConditionally (pyflakes.test.test_doctests.TestOther.test_doubleAssignmentConditionally) If a variable is re-assigned within a conditional, no warning is ... ok test_doubleAssignmentWithUse (pyflakes.test.test_doctests.TestOther.test_doubleAssignmentWithUse) If a variable is re-assigned to after being used, no warning is ... ok test_duplicateArgs (pyflakes.test.test_doctests.TestOther.test_duplicateArgs) ... ok test_ellipsis (pyflakes.test.test_doctests.TestOther.test_ellipsis) Ellipsis in a slice is supported. ... ok test_extendedSlice (pyflakes.test.test_doctests.TestOther.test_extendedSlice) Extended slices are supported. ... ok test_functionDecorator (pyflakes.test.test_doctests.TestOther.test_functionDecorator) Test that shadowing a function definition with a decorated version of ... ok test_functionRedefinedAsClass (pyflakes.test.test_doctests.TestOther.test_functionRedefinedAsClass) If a function is redefined as a class, a warning is emitted. ... ok test_function_arguments (pyflakes.test.test_doctests.TestOther.test_function_arguments) Test to traverse ARG and ARGUMENT handler ... ok test_function_arguments_python3 (pyflakes.test.test_doctests.TestOther.test_function_arguments_python3) ... ok test_globalDeclaredInDifferentScope (pyflakes.test.test_doctests.TestOther.test_globalDeclaredInDifferentScope) A 'global' can be declared in one scope and reused in another. ... ok test_identity (pyflakes.test.test_doctests.TestOther.test_identity) If a defined name is used on either side of an identity test, no ... ok test_localReferencedBeforeAssignment (pyflakes.test.test_doctests.TestOther.test_localReferencedBeforeAssignment) ... ok test_loopControl (pyflakes.test.test_doctests.TestOther.test_loopControl) break and continue statements are supported. ... ok test_modernProperty (pyflakes.test.test_doctests.TestOther.test_modernProperty) ... ok test_moduleWithReturn (pyflakes.test.test_doctests.TestOther.test_moduleWithReturn) If a return is used at the module level, a warning is emitted. ... ok test_moduleWithYield (pyflakes.test.test_doctests.TestOther.test_moduleWithYield) If a yield is used at the module level, a warning is emitted. ... ok test_moduleWithYieldFrom (pyflakes.test.test_doctests.TestOther.test_moduleWithYieldFrom) If a yield from is used at the module level, a warning is emitted. ... ok test_redefinedClassFunction (pyflakes.test.test_doctests.TestOther.test_redefinedClassFunction) Test that shadowing a function definition in a class suite with another ... ok test_redefinedFunction (pyflakes.test.test_doctests.TestOther.test_redefinedFunction) Test that shadowing a function definition with another one raises a ... ok test_redefinedIfElseFunction (pyflakes.test.test_doctests.TestOther.test_redefinedIfElseFunction) Test that shadowing a function definition twice in an if ... ok test_redefinedIfElseInListComp (pyflakes.test.test_doctests.TestOther.test_redefinedIfElseInListComp) Test that shadowing a variable in a list comprehension in ... ok test_redefinedIfFunction (pyflakes.test.test_doctests.TestOther.test_redefinedIfFunction) Test that shadowing a function definition within an if block ... ok test_redefinedInDictComprehension (pyflakes.test.test_doctests.TestOther.test_redefinedInDictComprehension) Test that reusing a variable in a dict comprehension does not raise ... ok test_redefinedInGenerator (pyflakes.test.test_doctests.TestOther.test_redefinedInGenerator) Test that reusing a variable in a generator does not raise ... ok test_redefinedInSetComprehension (pyflakes.test.test_doctests.TestOther.test_redefinedInSetComprehension) Test that reusing a variable in a set comprehension does not raise ... ok test_redefinedTryExceptFunction (pyflakes.test.test_doctests.TestOther.test_redefinedTryExceptFunction) Test that shadowing a function definition twice in try ... ok test_redefinedTryFunction (pyflakes.test.test_doctests.TestOther.test_redefinedTryFunction) Test that shadowing a function definition within a try block ... ok test_redefinedUnderscoreFunction (pyflakes.test.test_doctests.TestOther.test_redefinedUnderscoreFunction) Test that shadowing a function definition named with underscore doesn't ... ok test_redefinedUnderscoreImportation (pyflakes.test.test_doctests.TestOther.test_redefinedUnderscoreImportation) Test that shadowing an underscore importation raises a warning. ... ok test_starredAssignmentErrors (pyflakes.test.test_doctests.TestOther.test_starredAssignmentErrors) SyntaxErrors (not encoded in the ast) surrounding Python 3 extended ... ok test_starredAssignmentNoError (pyflakes.test.test_doctests.TestOther.test_starredAssignmentNoError) Python 3 extended iterable unpacking ... ok test_unaryPlus (pyflakes.test.test_doctests.TestOther.test_unaryPlus) Don't die on unary +. ... ok test_undefinedBaseClass (pyflakes.test.test_doctests.TestOther.test_undefinedBaseClass) If a name in the base list of a class definition is undefined, a ... ok test_varAugmentedAssignment (pyflakes.test.test_doctests.TestOther.test_varAugmentedAssignment) Augmented assignment of a variable is supported. ... ok test_annotationUndefined (pyflakes.test.test_doctests.TestUndefinedNames.test_annotationUndefined) Undefined annotations. ... ok test_badNestedClass (pyflakes.test.test_doctests.TestUndefinedNames.test_badNestedClass) Free variables in nested classes must bind at class creation. ... ok test_builtinWindowsError (pyflakes.test.test_doctests.TestUndefinedNames.test_builtinWindowsError) C{WindowsError} is sometimes a builtin name, so no warning is emitted ... ok test_builtins (pyflakes.test.test_doctests.TestUndefinedNames.test_builtins) ... ok test_definedAsStarArgs (pyflakes.test.test_doctests.TestUndefinedNames.test_definedAsStarArgs) Star and double-star arg names are defined. ... ok test_definedAsStarUnpack (pyflakes.test.test_doctests.TestUndefinedNames.test_definedAsStarUnpack) Star names in unpack are defined. ... ok test_definedByGlobal (pyflakes.test.test_doctests.TestUndefinedNames.test_definedByGlobal) "global" can make an otherwise undefined name in another function ... ok test_definedByGlobalMultipleNames (pyflakes.test.test_doctests.TestUndefinedNames.test_definedByGlobalMultipleNames) "global" can accept multiple names. ... ok test_definedFromLambdaInDictionaryComprehension (pyflakes.test.test_doctests.TestUndefinedNames.test_definedFromLambdaInDictionaryComprehension) Defined name referenced from a lambda function within a dict/set ... ok test_definedFromLambdaInGenerator (pyflakes.test.test_doctests.TestUndefinedNames.test_definedFromLambdaInGenerator) Defined name referenced from a lambda function within a generator ... ok test_definedInClass (pyflakes.test.test_doctests.TestUndefinedNames.test_definedInClass) Defined name for generator expressions and dict/set comprehension. ... ok test_definedInClassNested (pyflakes.test.test_doctests.TestUndefinedNames.test_definedInClassNested) Defined name for nested generator expressions in a class. ... ok test_definedInGenExp (pyflakes.test.test_doctests.TestUndefinedNames.test_definedInGenExp) Using the loop variable of a generator expression results in no ... ok test_definedInListComp (pyflakes.test.test_doctests.TestUndefinedNames.test_definedInListComp) ... ok test_del (pyflakes.test.test_doctests.TestUndefinedNames.test_del) Del deletes bindings. ... ok test_delConditional (pyflakes.test.test_doctests.TestUndefinedNames.test_delConditional) Ignores conditional bindings deletion. ... ok test_delConditionalNested (pyflakes.test.test_doctests.TestUndefinedNames.test_delConditionalNested) Ignored conditional bindings deletion even if they are nested in other ... ok test_delExceptionInExcept (pyflakes.test.test_doctests.TestUndefinedNames.test_delExceptionInExcept) The exception name can be deleted in the except: block. ... ok test_delGlobal (pyflakes.test.test_doctests.TestUndefinedNames.test_delGlobal) Del a global binding from a function. ... ok test_delUndefined (pyflakes.test.test_doctests.TestUndefinedNames.test_delUndefined) Del an undefined name. ... ok test_delWhile (pyflakes.test.test_doctests.TestUndefinedNames.test_delWhile) Ignore bindings deletion if called inside the body of a while ... ok test_delWhileNested (pyflakes.test.test_doctests.TestUndefinedNames.test_delWhileNested) Ignore bindings deletions if node is part of while's test, even when ... ok test_delWhileTestUsage (pyflakes.test.test_doctests.TestUndefinedNames.test_delWhileTestUsage) Ignore bindings deletion if called inside the body of a while ... ok test_doubleNestingReportsClosestName (pyflakes.test.test_doctests.TestUndefinedNames.test_doubleNestingReportsClosestName) Test that referencing a local name in a nested scope that shadows a ... ok test_dunderClass (pyflakes.test.test_doctests.TestUndefinedNames.test_dunderClass) ... ok test_functionsNeedGlobalScope (pyflakes.test.test_doctests.TestUndefinedNames.test_functionsNeedGlobalScope) ... ok test_globalFromNestedScope (pyflakes.test.test_doctests.TestUndefinedNames.test_globalFromNestedScope) Global names are available from nested scopes. ... ok test_globalImportStar (pyflakes.test.test_doctests.TestUndefinedNames.test_globalImportStar) Can't find undefined names with import *. ... ok test_globalInGlobalScope (pyflakes.test.test_doctests.TestUndefinedNames.test_globalInGlobalScope) A global statement in the global scope is ignored. ... ok test_global_reset_name_only (pyflakes.test.test_doctests.TestUndefinedNames.test_global_reset_name_only) A global statement does not prevent other names being undefined. ... ok test_intermediateClassScopeIgnored (pyflakes.test.test_doctests.TestUndefinedNames.test_intermediateClassScopeIgnored) If a name defined in an enclosing scope is shadowed by a local variable ... ok test_keywordOnlyArgs (pyflakes.test.test_doctests.TestUndefinedNames.test_keywordOnlyArgs) Keyword-only arg names are defined. ... ok test_keywordOnlyArgsUndefined (pyflakes.test.test_doctests.TestUndefinedNames.test_keywordOnlyArgsUndefined) Typo in kwonly name. ... ok test_laterRedefinedGlobalFromNestedScope (pyflakes.test.test_doctests.TestUndefinedNames.test_laterRedefinedGlobalFromNestedScope) Test that referencing a local name that shadows a global, before it is ... ok test_laterRedefinedGlobalFromNestedScope2 (pyflakes.test.test_doctests.TestUndefinedNames.test_laterRedefinedGlobalFromNestedScope2) Test that referencing a local name in a nested scope that shadows a ... ok test_laterRedefinedGlobalFromNestedScope3 (pyflakes.test.test_doctests.TestUndefinedNames.test_laterRedefinedGlobalFromNestedScope3) Test that referencing a local name in a nested scope that shadows a ... ok test_magicGlobalsBuiltins (pyflakes.test.test_doctests.TestUndefinedNames.test_magicGlobalsBuiltins) Use of the C{__builtins__} magic global should not emit an undefined ... ok test_magicGlobalsFile (pyflakes.test.test_doctests.TestUndefinedNames.test_magicGlobalsFile) Use of the C{__file__} magic global should not emit an undefined name ... ok test_magicGlobalsName (pyflakes.test.test_doctests.TestUndefinedNames.test_magicGlobalsName) Use of the C{__name__} magic global should not emit an undefined name ... ok test_magicGlobalsPath (pyflakes.test.test_doctests.TestUndefinedNames.test_magicGlobalsPath) Use of the C{__path__} magic global should not emit an undefined name ... ok test_magicModuleInClassScope (pyflakes.test.test_doctests.TestUndefinedNames.test_magicModuleInClassScope) Use of the C{__module__} magic builtin should not emit an undefined ... ok test_magicQualnameInClassScope (pyflakes.test.test_doctests.TestUndefinedNames.test_magicQualnameInClassScope) Use of the C{__qualname__} magic builtin should not emit an undefined ... ok test_metaClassUndefined (pyflakes.test.test_doctests.TestUndefinedNames.test_metaClassUndefined) ... ok test_moduleAnnotations (pyflakes.test.test_doctests.TestUndefinedNames.test_moduleAnnotations) Use of the C{__annotations__} in module scope should not emit ... ok test_namesDeclaredInExceptBlocks (pyflakes.test.test_doctests.TestUndefinedNames.test_namesDeclaredInExceptBlocks) Locals declared in except: blocks can be used after the block. ... ok test_nestedClass (pyflakes.test.test_doctests.TestUndefinedNames.test_nestedClass) Nested classes can access enclosing scope. ... ok test_undefined (pyflakes.test.test_doctests.TestUndefinedNames.test_undefined) ... ok test_undefinedAugmentedAssignment (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedAugmentedAssignment) ... ok test_undefinedExceptionName (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionName) Exception names can't be used after the except: block. ... ok test_undefinedExceptionNameObscuringGlobalVariable (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringGlobalVariable) Exception names obscure globals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringGlobalVariable2 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringGlobalVariable2) Exception names obscure globals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringGlobalVariableFalsePositive1 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringGlobalVariableFalsePositive1) Exception names obscure globals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringGlobalVariableFalsePositive2 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringGlobalVariableFalsePositive2) Exception names obscure globals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringLocalVariable (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringLocalVariable) Exception names obscure locals, can't be used after. ... skipped 'error reporting disabled due to false positives below' test_undefinedExceptionNameObscuringLocalVariable2 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringLocalVariable2) Exception names are unbound after the `except:` block. ... ok test_undefinedExceptionNameObscuringLocalVariableFalsePositive1 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringLocalVariableFalsePositive1) Exception names obscure locals, can't be used after. Unless. ... ok test_undefinedExceptionNameObscuringLocalVariableFalsePositive2 (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedExceptionNameObscuringLocalVariableFalsePositive2) Exception names obscure locals, can't be used after. Unless. ... ok test_undefinedFromLambdaInComprehension (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedFromLambdaInComprehension) Undefined name referenced from a lambda function within a generator ... ok test_undefinedFromLambdaInDictionaryComprehension (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedFromLambdaInDictionaryComprehension) Undefined name referenced from a lambda function within a dict/set ... ok test_undefinedInGenExpNested (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedInGenExpNested) The loop variables of generator expressions nested together are ... ok test_undefinedInListComp (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedInListComp) ... ok test_undefinedInLoop (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedInLoop) The loop variable is defined after the expression is computed. ... ok test_undefinedWithErrorHandler (pyflakes.test.test_doctests.TestUndefinedNames.test_undefinedWithErrorHandler) Some compatibility code checks explicitly for NameError. ... ok test_unusedAsStarUnpack (pyflakes.test.test_doctests.TestUndefinedNames.test_unusedAsStarUnpack) Star names in unpack are unused if RHS is a tuple/list literal. ... ok test_unused_global (pyflakes.test.test_doctests.TestUndefinedNames.test_unused_global) An unused global statement does not define the name. ... skipped 'todo' test_usedAsStarUnpack (pyflakes.test.test_doctests.TestUndefinedNames.test_usedAsStarUnpack) Star names in unpack are used if RHS is not a tuple/list literal. ... ok test_class_segment (pyflakes.test.test_code_segment.TestCodeSegments.test_class_segment) ... ok test_function_segment (pyflakes.test.test_code_segment.TestCodeSegments.test_function_segment) ... ok test_scope_async_function (pyflakes.test.test_code_segment.TestCodeSegments.test_scope_async_function) ... ok test_scope_class (pyflakes.test.test_code_segment.TestCodeSegments.test_scope_class) ... ok test_scope_function (pyflakes.test.test_code_segment.TestCodeSegments.test_scope_function) ... ok ---------------------------------------------------------------------- Ran 721 tests in 0.668s OK (skipped=17) >>> py3-pyflakes: Entering fakeroot... /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() >>> py3-pyflakes-pyc*: Running split function pyc... '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes/usr/lib/python3.11/site-packages/pyflakes/__pycache__' -> '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes-pyc/usr/lib/python3.11/site-packages/pyflakes/__pycache__' '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes/usr/lib/python3.11/site-packages/pyflakes/test/__pycache__' -> '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes-pyc/usr/lib/python3.11/site-packages/pyflakes/test/__pycache__' '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes/usr/lib/python3.11/site-packages/pyflakes/scripts/__pycache__' -> '/home/buildozer/aports/community/py3-pyflakes/pkg/py3-pyflakes-pyc/usr/lib/python3.11/site-packages/pyflakes/scripts/__pycache__' >>> py3-pyflakes-pyc*: Preparing subpackage py3-pyflakes-pyc... >>> py3-pyflakes-pyc*: Running postcheck for py3-pyflakes-pyc >>> py3-pyflakes*: Running postcheck for py3-pyflakes >>> py3-pyflakes*: Preparing package py3-pyflakes... >>> py3-pyflakes-pyc*: Tracing dependencies... python3 python3~3.11 >>> py3-pyflakes-pyc*: Package size: 540.0 KB >>> py3-pyflakes-pyc*: Compressing data... >>> py3-pyflakes-pyc*: Create checksum... >>> py3-pyflakes-pyc*: Create py3-pyflakes-pyc-3.0.1-r1.apk >>> py3-pyflakes*: Tracing dependencies... python3 python3~3.11 >>> py3-pyflakes*: Package size: 388.0 KB >>> py3-pyflakes*: Compressing data... >>> py3-pyflakes*: Create checksum... >>> py3-pyflakes*: Create py3-pyflakes-3.0.1-r1.apk >>> py3-pyflakes: Build complete at Wed, 26 Apr 2023 18:41:52 +0000 elapsed time 0h 0m 2s >>> py3-pyflakes: Cleaning up srcdir >>> py3-pyflakes: Cleaning up pkgdir >>> py3-pyflakes: Uninstalling dependencies... (1/19) Purging .makedepends-py3-pyflakes (20230426.184150) (2/19) Purging py3-setuptools-pyc (67.7.2-r0) (3/19) Purging py3-setuptools (67.7.2-r0) (4/19) Purging py3-packaging-pyc (23.1-r1) (5/19) Purging py3-packaging (23.1-r1) (6/19) Purging py3-parsing-pyc (3.0.9-r2) (7/19) Purging py3-parsing (3.0.9-r2) (8/19) Purging python3-pyc (3.11.3-r10) (9/19) Purging python3-pycache-pyc0 (3.11.3-r10) (10/19) Purging pyc (0.1-r0) (11/19) Purging python3 (3.11.3-r10) (12/19) Purging gdbm (1.23-r1) (13/19) Purging libbz2 (1.0.8-r5) (14/19) Purging libffi (3.4.4-r2) (15/19) Purging libpanelw (6.4_p20230401-r6) (16/19) Purging mpdecimal (2.5.1-r2) (17/19) Purging readline (8.2.1-r1) (18/19) Purging sqlite-libs (3.41.2-r2) (19/19) Purging xz-libs (5.4.2-r1) Executing busybox-1.36.0-r8.trigger OK: 371 MiB in 98 packages >>> py3-pyflakes: Updating the community/s390x repository index... >>> py3-pyflakes: Signing the index...