summaryrefslogtreecommitdiff
path: root/tests/functional/r
Commit message (Collapse)AuthorAgeFilesLines
* Update pytest requirement from ~=7.2 to ~=7.3 (#8562)dependabot[bot]2023-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | * Update pytest requirement from ~=7.2 to ~=7.3 Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.3.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production ... * Disable import-error as attrs is no longer a test dependency --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Modified all occurences of "a f-string" to "an f-string"Elazrod562023-04-201-1/+1
|
* [cleanup] Upgrade more doc following the PyCQA migrationPierre Sassoulas2023-03-315-6/+6
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2941-44/+44
|
* [testutil] Fix the algorithm for functional test discoveryPierre Sassoulas2023-03-281-0/+0
|
* Add ``invalid-name`` check for ``TypeAlias`` names (#7116)Daniël van Noord2023-02-261-1/+1
|
* Add regression test for #8109Pierre Sassoulas2023-02-132-0/+16
|
* Fix crash when an attribute node was used inside an unary op (#8209)Pierre Sassoulas2023-02-071-0/+14
| | | | | Closes #8207
* Update docs for `global-variable-not-assigned` (#8151)Dani Alcala2023-02-011-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixed a crash when inferring a value and using its qname on a slice (#8070)Pierre Sassoulas2023-01-182-0/+18
| | | | Closes #8067
* Add a regression tests for issue #2567Pierre Sassoulas2023-01-131-0/+33
|
* [pypy3.8] Disable multiple-statements false positive on affected functional ↵Pierre Sassoulas2022-12-154-13/+22
| | | | tests
* Fix ``no-else-return false Negative for try/except/else pattern (#7888)Dani Alcala2022-12-121-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Clearer ``reimported`` and new ``shadowed-import`` messages for aliased ↵Dani Alcala2022-11-303-14/+20
| | | | | | | import (#7756) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Emit `used-before-assignment` for variables only defined under always false ↵Jacob Walls2022-11-221-1/+1
| | | | tests (#6677)
* Fix `valid-metaclass-classmethod-first-arg` default value (#7791)Cubicpath2022-11-191-2/+2
| | | | | * Change default value to "mcs" * Fix functional tests to use "mcs" for first MetaClass classmethod arg
* Add confidence levels to all exception checkers (#7716)Dani Alcala2022-11-053-9/+9
|
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-051-1/+1
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for no-member with empty AnnAssign (#7632)Marc Mueller2022-10-201-0/+16
|
* Prevent `redefined-outer-name` for `if t.TYPE_CHECKING`Jacob Walls2022-09-281-2/+10
|
* Replace no-method-argument with no-self-argument when variadic args present ↵Jakub Kuczys2022-09-231-1/+1
| | | | | | (#7518) Also add method name to the error message
* Add a functional regression test. (#7451)Mark Byrne2022-09-101-0/+24
| | | Refs #2964
* Add a functional regression test. (#7364)Mark Byrne2022-08-261-0/+14
| | | Closes #3976
* Add enum regression test (#7323)Marc Mueller2022-08-201-0/+24
|
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-1810-29/+21
| | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Rename bad-exception-context to bad-exception-cause (#7125)VictorT2022-07-181-1/+1
| | | | | | Fixes #3694 Co-authored-by: Victor Taïx <victor.taix@grenoble-inp.org> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for Enum imported as alias (#6798)Daniël van Noord2022-07-171-0/+15
|
* [struct.unpack] Add a test for a false positive no-member (#7138)Pierre Sassoulas2022-07-061-0/+5
| | | | Closes #5801
* [not-callable] Add a regression test for issue #4660 (#7110)Pierre Sassoulas2022-07-023-0/+48
| | | | Closes #4660
* [unused-variable] Add a regression test for a false positive (#7104)Pierre Sassoulas2022-06-301-0/+47
| | | Closes #3866
* Rename clashing import name in one test case (#6797)Jakub Kulík2022-06-022-5/+5
|
* [raise-missing-from] Clearer message and example in the documentation (#6576)Pierre Sassoulas2022-05-122-18/+37
| | | | | | | | | * [raise-missing-from] Clearer message and example in the documentation Co-authored-by: cool-RR <ram@rachum.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Refs #5953 Closes #3707
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add an exception for `IndexError` inside `uninferable_final_decorator` (#6532)Mark Byrne2022-05-071-0/+30
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add regression test of invalid-sequence-index false-positiveAndrew Haigh2022-05-061-0/+4
| | | | Ref #4083
* Move no-self-use to optional extension (#6448)Marc Mueller2022-05-056-6/+6
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* C2901 & C2902: New checks for unnecessary lambda expression usage (#6004)Joe Young2022-05-041-1/+1
| | | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Update tests and testoptions for PyPyDaniël van Noord2022-05-031-3/+0
|
* Add optional check `redefined-loop-name` (#5649)Jacob Walls2022-05-016-50/+3
| | | | | | | | | | | | * Also change message type for inner loops overwriting the outer loop variable from `redefined-outer-name` to `redefined-loop-name` * Update redefined-outer-name description * Add coverage and fix preexisting false positive When the check for inner loops redefining outer loop variables was redefined-outer-name, it assumed enclosing for-loops were in the same namespace. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``--minimal-messages-config`` option for functional tests (#6246)Andreas Finkler2022-04-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ``--minimal-messages-config`` option for functional tests * Add test file option to exclude from --minimal-messages-config run. * Fix ``too-many-branches`` false negative * Fix ``access-member-before-definition`` false negative * Fix ``consider-using-min-builtin`` and ``consider-using-max-builtin`` false negatives * Fix ``consider-using-with`` false negative * Exclude ``deprecated-module`` tests from ``--minimal-messages-config`` run. Have to find out how the list of deprecated modules is built first. * Update doc/whatsnew/2.14.rst * Ignore deprecated module false negatives * Fix ``deprecated-typing-alias`` false negative * Skip tests for ``fixme`` message, don't know yet how enable/disable affects TokenChecker/RawChecker * Exclude functional test for various logging checks, as the output string depends on what messages are enabled. * Fix false negative for ``nan-comparison`` * Fix false negative for ``non-ascii-module-import`` * Fix false negative for ``non-ascii-file-name`` * Skip tests for logging messages * Fix false negative for ``undefined-variable`` in ``metaclass`` argument * Exclude test for ``catching-non-exception``. ``exc._all_bases_known`` is ``False`` when enabling just this message. * Exclude ``ungrouped_imports_suppression``. ``useless-suppression`` is triggered too often in this case. * Fix false negative for ``use-a-generator`` * Exclude functional tests for ``useless-suppression`` from ``--minimal-messages-config`` * Exclude another deprecation check from ``--minimal-messages-config`` run * Update tests/testutils/data/m/minimal_messages_config.py Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Suppress `unsubscriptable-object` warnings in type-checking blocks (#5720)Pierre Sassoulas2022-04-091-0/+13
| | | | | | | * Add a regression test for issue #3979 * Don't emit `unsubscriptable-object` for statements in type-checking blocks Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* ``redefined-slots-in-subclass`` crash when slot type is neither a string or ↵Mark Byrne2022-04-021-1/+7
| | | | | | | constant node (#6112) * Suppress `invalid-slots-object` in the function tests for `redefined-slots-in-subclass` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``node.position`` in ``add_message`` if available (#5897)Daniël van Noord2022-03-123-3/+3
|
* Add regression test for issue #5408 (#5795)Daniël van Noord2022-03-121-0/+37
|
* Fixes for tests due to new ``tolineno`` behaviourDaniël van Noord2022-03-122-2/+1
|
* Add ``typevar-name-missing-variance`` checker (#5825)Daniël van Noord2022-03-111-1/+1
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Yudaka <dakala@tuta.io>
* Add `distutils` to deprecated modules (#5864)Jacob Walls2022-03-081-1/+1
|
* Move functional test files to new structureDaniël van Noord2022-02-1024-0/+0
|
* Improve error message arguments formatting [redefined-slots] (#5754)Marc Mueller2022-01-311-2/+2
|
* Add confidence level `CONTROL_FLOW` (#5709)Jacob Walls2022-01-261-1/+1
|