Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #3

Merged
merged 75 commits into from Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
683d20b
Refactor private_assert_caplog_records_is_setup_call
jsoref Mar 11, 2024
5172d63
Remove _caplog_ from test name
jsoref Mar 11, 2024
ff56f31
spelling: already
jsoref Mar 10, 2024
b4dc00b
spelling: analysis pipelines
jsoref Mar 13, 2024
2684b53
spelling: anatoly
jsoref Mar 10, 2024
8f93c45
spelling: and
jsoref Mar 10, 2024
32e7d6a
spelling: automatically
jsoref Mar 10, 2024
0cb91d0
spelling: bootstrapping
jsoref Mar 10, 2024
24af8a2
spelling: cachefile
jsoref Mar 11, 2024
726cb53
spelling: cannot
jsoref Mar 10, 2024
2fe96de
spelling: case-insensitive
jsoref Mar 10, 2024
8e1aab1
spelling: collection
jsoref Mar 11, 2024
6700f17
spelling: completion
jsoref Mar 11, 2024
be26e12
spelling: consuming
jsoref Mar 11, 2024
bcd7d0c
spelling: copy
jsoref Mar 10, 2024
0b25284
spelling: coroutine
jsoref Mar 11, 2024
e0e76ff
spelling: deprecation
jsoref Mar 11, 2024
66d4ddd
spelling: details
jsoref Mar 10, 2024
ba001ab
spelling: discussions
jsoref Mar 11, 2024
639267d
spelling: doctest
jsoref Mar 11, 2024
445f264
spelling: doctests
jsoref Mar 11, 2024
6c0e3f8
spelling: errors
jsoref Mar 11, 2024
4e58076
spelling: escaped
jsoref Mar 11, 2024
0816b61
spelling: evaluable
jsoref Mar 11, 2024
4893181
spelling: failures
jsoref Mar 11, 2024
9f692b8
spelling: fine-grained
jsoref Mar 10, 2024
3b3c097
spelling: fixes
jsoref Mar 11, 2024
ff517ec
spelling: fixturedef
jsoref Mar 11, 2024
b0a5081
spelling: flatly
jsoref Mar 11, 2024
5ebb019
spelling: forward
jsoref Mar 11, 2024
e8b3120
spelling: highlighter
jsoref Mar 13, 2024
214aaa9
spelling: information
jsoref Mar 11, 2024
e8f0a5c
spelling: initial
jsoref Mar 11, 2024
33d6a6c
spelling: initialization
jsoref Mar 11, 2024
47ff6fc
spelling: instanced
jsoref Mar 11, 2024
7575bba
spelling: interact
jsoref Mar 11, 2024
4b2c6fb
spelling: internally
jsoref Mar 11, 2024
a56074d
spelling: into
jsoref Mar 10, 2024
5253a72
spelling: isinstance
jsoref Mar 11, 2024
27fbb0d
spelling: its
jsoref Mar 10, 2024
780f9bc
spelling: limitations
jsoref Mar 11, 2024
d60ae13
spelling: macos
jsoref Mar 10, 2024
84bf449
spelling: manifest
jsoref Mar 11, 2024
b93b0d1
spelling: many
jsoref Mar 10, 2024
24f7a3c
spelling: much
jsoref Mar 10, 2024
41cefad
spelling: multiline
jsoref Mar 11, 2024
b67c47f
spelling: negative
jsoref Mar 11, 2024
d03ae85
spelling: oddities
jsoref Mar 13, 2024
7631b8e
spelling: overridden
jsoref Mar 11, 2024
206200b
spelling: parameterization
jsoref Mar 11, 2024
d037a42
spelling: parametrized
jsoref Mar 11, 2024
5a4ea85
spelling: permission
jsoref Mar 11, 2024
ebb0bb6
spelling: preexisting
jsoref Mar 10, 2024
e122639
spelling: previously
jsoref Mar 12, 2024
0b12aa8
spelling: prioritize
jsoref Mar 12, 2024
9dade29
spelling: pytest
jsoref Mar 11, 2024
f06cb1f
spelling: raised
jsoref Mar 11, 2024
040417d
spelling: reentrant
jsoref Mar 10, 2024
2a7c68b
spelling: regression
jsoref Mar 11, 2024
b3eb766
spelling: report
jsoref Mar 12, 2024
d47cdce
spelling: rootpath
jsoref Mar 12, 2024
dbbc996
spelling: running
jsoref Mar 11, 2024
347a6b4
spelling: something
jsoref Mar 11, 2024
b9e1bb8
spelling: startdir
jsoref Mar 12, 2024
8a0b834
spelling: suppressing
jsoref Mar 12, 2024
4e97a84
spelling: synchronize
jsoref Mar 12, 2024
057a67c
spelling: than
jsoref Mar 10, 2024
febe700
spelling: thanks
jsoref Mar 11, 2024
0b54fe0
spelling: that
jsoref Mar 10, 2024
cf4c7de
spelling: the
jsoref Mar 10, 2024
6158a56
spelling: torn_down
jsoref Mar 12, 2024
b247c11
spelling: unaffected
jsoref Mar 11, 2024
86cfd40
spelling: unavailable
jsoref Mar 11, 2024
c5d2d6b
spelling: undoes
jsoref Mar 11, 2024
49227e1
spelling: visibility
jsoref Mar 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/en/announce/release-2.0.0.rst
Expand Up @@ -62,7 +62,7 @@ New Features
- new "-q" option which decreases verbosity and prints a more
nose/unittest-style "dot" output.

- many many more detailed improvements details
- many, many, more detailed improvements details

Fixes
-----------------------
Expand Down Expand Up @@ -109,7 +109,7 @@ Important Notes
in conftest.py files. They will cause nothing special.
- removed support for calling the pre-1.0 collection API of "run()" and "join"
- removed reading option values from conftest.py files or env variables.
This can now be done much much better and easier through the ini-file
This can now be done much, much, better and easier through the ini-file
mechanism and the "addopts" entry in particular.
- removed the "disabled" attribute in test classes. Use the skipping
and pytestmark mechanism to skip or xfail a test class.
Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/release-2.2.2.rst
Expand Up @@ -4,7 +4,7 @@ pytest-2.2.2: bug fixes
pytest-2.2.2 (updated to 2.2.3 to fix packaging issues) is a minor
backward-compatible release of the versatile py.test testing tool. It
contains bug fixes and a few refinements particularly to reporting with
"--collectonly", see below for betails.
"--collectonly", see below for details.

For general information see here:

Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/release-2.4.0.rst
Expand Up @@ -181,7 +181,7 @@ Bug fixes:
partially failed (finalizers would not always be called before)

- fix issue320 - fix class scope for fixtures when mixed with
module-level functions. Thanks Anatloy Bubenkoff.
module-level functions. Thanks Anatoly Bubenkoff.

- you can specify "-q" or "-qq" to get different levels of "quieter"
reporting (thanks Katarzyna Jachim)
Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/release-2.5.0.rst
Expand Up @@ -83,7 +83,7 @@ holger krekel
Thanks Ralph Schmitt for the precise failure example.

- fix issue244 by implementing special index for parameters to only use
indices for paramentrized test ids
indices for parametrized test ids

- fix issue287 by running all finalizers but saving the exception
from the first failing finalizer and re-raising it so teardown will
Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/release-2.6.0.rst
Expand Up @@ -73,7 +73,7 @@ holger krekel
- cleanup setup.py a bit and specify supported versions. Thanks Jurko
Gospodnetic for the PR.

- change XPASS colour to yellow rather then red when tests are run
- change XPASS colour to yellow rather than red when tests are run
with -v.

- fix issue473: work around mock putting an unbound method into a class
Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/release-2.7.0.rst
Expand Up @@ -55,7 +55,7 @@ holger krekel
github. See https://pytest.org/en/stable/contributing.html .
Thanks to Anatoly for pushing and initial work on this.

- fix issue650: new option ``--docttest-ignore-import-errors`` which
- fix issue650: new option ``--doctest-ignore-import-errors`` which
will turn import errors in doctests into skips. Thanks Charles Cloud
for the complete PR.

Expand Down
2 changes: 1 addition & 1 deletion doc/en/announce/sprint2016.rst
Expand Up @@ -49,7 +49,7 @@ place on 20th, 21st, 22nd, 24th and 25th. On the 23rd we took a break
day for some hot hiking in the Black Forest.

Sprint activity was organised heavily around pairing, with plenty of group
discusssions to take advantage of the high bandwidth, and lightning talks
discussions to take advantage of the high bandwidth, and lightning talks
as well.


Expand Down
38 changes: 19 additions & 19 deletions doc/en/changelog.rst
Expand Up @@ -60,7 +60,7 @@ Improvements
- `#11311 <https://github.com/pytest-dev/pytest/issues/11311>`_: When using ``--override-ini`` for paths in invocations without a configuration file defined, the current working directory is used
as the relative directory.

Previoulsy this would raise an :class:`AssertionError`.
Previously this would raise an :class:`AssertionError`.


- `#11475 <https://github.com/pytest-dev/pytest/issues/11475>`_: :ref:`--import-mode=importlib <import-mode-importlib>` now tries to import modules using the standard import mechanism (but still without changing :py:data:`sys.path`), falling back to importing modules directly only if that fails.
Expand Down Expand Up @@ -1303,7 +1303,7 @@ Deprecations
``__init__`` method, they should take ``**kwargs``. See
:ref:`uncooperative-constructors-deprecated` for details.

Note that a deprection warning is only emitted when there is a conflict in the
Note that a deprecation warning is only emitted when there is a conflict in the
arguments pytest expected to pass. This deprecation was already part of pytest
7.0.0rc1 but wasn't documented.

Expand Down Expand Up @@ -1345,7 +1345,7 @@ Breaking Changes
- `#7259 <https://github.com/pytest-dev/pytest/issues/7259>`_: The :ref:`Node.reportinfo() <non-python tests>` function first return value type has been expanded from `py.path.local | str` to `os.PathLike[str] | str`.

Most plugins which refer to `reportinfo()` only define it as part of a custom :class:`pytest.Item` implementation.
Since `py.path.local` is an `os.PathLike[str]`, these plugins are unaffacted.
Since `py.path.local` is an `os.PathLike[str]`, these plugins are unaffected.

Plugins and users which call `reportinfo()`, use the first return value and interact with it as a `py.path.local`, would need to adjust by calling `py.path.local(fspath)`.
Although preferably, avoid the legacy `py.path.local` and use `pathlib.Path`, or use `item.location` or `item.path`, instead.
Expand Down Expand Up @@ -1853,7 +1853,7 @@ Bug Fixes
the ``tmp_path``/``tmpdir`` fixture). Now the directories are created with
private permissions.

pytest used to silently use a pre-existing ``/tmp/pytest-of-<username>`` directory,
pytest used to silently use a preexisting ``/tmp/pytest-of-<username>`` directory,
even if owned by another user. This means another user could pre-create such a
directory and gain control of another user's temporary directory. Now such a
condition results in an error.
Expand Down Expand Up @@ -2580,7 +2580,7 @@ Features
also changes ``sys.modules`` as a side-effect), which works but has a number of drawbacks, like requiring test modules
that don't live in packages to have unique names (as they need to reside under a unique name in ``sys.modules``).

``--import-mode=importlib`` uses more fine grained import mechanisms from ``importlib`` which don't
``--import-mode=importlib`` uses more fine-grained import mechanisms from ``importlib`` which don't
require pytest to change ``sys.path`` or ``sys.modules`` at all, eliminating much of the drawbacks
of the previous mode.

Expand All @@ -2597,7 +2597,7 @@ Improvements
------------

- :issue:`4375`: The ``pytest`` command now suppresses the ``BrokenPipeError`` error message that
is printed to stderr when the output of ``pytest`` is piped and and the pipe is
is printed to stderr when the output of ``pytest`` is piped and the pipe is
closed by the piped-to program (common examples are ``less`` and ``head``).


Expand Down Expand Up @@ -2899,7 +2899,7 @@ Breaking Changes
This hook has been marked as deprecated and not been even called by pytest for over 10 years now.


- :issue:`6673`: Reversed / fix meaning of "+/-" in error diffs. "-" means that sth. expected is missing in the result and "+" means that there are unexpected extras in the result.
- :issue:`6673`: Reversed / fix meaning of "+/-" in error diffs. "-" means that something expected is missing in the result and "+" means that there are unexpected extras in the result.


- :issue:`6737`: The ``cached_result`` attribute of ``FixtureDef`` is now set to ``None`` when
Expand Down Expand Up @@ -4504,7 +4504,7 @@ Bug Fixes
Improved Documentation
----------------------

- :issue:`4974`: Update docs for ``pytest_cmdline_parse`` hook to note availability liminations
- :issue:`4974`: Update docs for ``pytest_cmdline_parse`` hook to note availability limitations



Expand Down Expand Up @@ -6362,7 +6362,7 @@ Features
Bug Fixes
---------

- Fix hanging pexpect test on MacOS by using flush() instead of wait().
- Fix hanging pexpect test on macOS by using flush() instead of wait().
(:issue:`2022`)

- Fix restoring Python state after in-process pytest runs with the
Expand Down Expand Up @@ -6410,7 +6410,7 @@ Trivial/Internal Changes
------------------------

- Show a simple and easy error when keyword expressions trigger a syntax error
(for example, ``"-k foo and import"`` will show an error that you can not use
(for example, ``"-k foo and import"`` will show an error that you cannot use
the ``import`` keyword in expressions). (:issue:`2953`)

- Change parametrized automatic test id generation to use the ``__name__``
Expand Down Expand Up @@ -8186,7 +8186,7 @@ time or change existing behaviors in order to make them less surprising/more use
one will also have a "reprec" attribute with the recorded events/reports.

- fix monkeypatch.setattr("x.y", raising=False) to actually not raise
if "y" is not a pre-existing attribute. Thanks Florian Bruhin.
if "y" is not a preexisting attribute. Thanks Florian Bruhin.

- fix issue741: make running output from testdir.run copy/pasteable
Thanks Bruno Oliveira.
Expand Down Expand Up @@ -8242,7 +8242,7 @@ time or change existing behaviors in order to make them less surprising/more use

- fix issue854: autouse yield_fixtures defined as class members of
unittest.TestCase subclasses now work as expected.
Thannks xmo-odoo for the report and Bruno Oliveira for the PR.
Thanks xmo-odoo for the report and Bruno Oliveira for the PR.

- fix issue833: --fixtures now shows all fixtures of collected test files, instead of just the
fixtures declared on the first one.
Expand Down Expand Up @@ -8346,7 +8346,7 @@ time or change existing behaviors in order to make them less surprising/more use
github. See https://pytest.org/en/stable/contributing.html .
Thanks to Anatoly for pushing and initial work on this.

- fix issue650: new option ``--docttest-ignore-import-errors`` which
- fix issue650: new option ``--doctest-ignore-import-errors`` which
will turn import errors in doctests into skips. Thanks Charles Cloud
for the complete PR.

Expand Down Expand Up @@ -8534,7 +8534,7 @@ time or change existing behaviors in order to make them less surprising/more use
- cleanup setup.py a bit and specify supported versions. Thanks Jurko
Gospodnetic for the PR.

- change XPASS colour to yellow rather then red when tests are run
- change XPASS colour to yellow rather than red when tests are run
with -v.

- fix issue473: work around mock putting an unbound method into a class
Expand Down Expand Up @@ -8707,15 +8707,15 @@ time or change existing behaviors in order to make them less surprising/more use
Thanks Ralph Schmitt for the precise failure example.

- fix issue244 by implementing special index for parameters to only use
indices for paramentrized test ids
indices for parametrized test ids

- fix issue287 by running all finalizers but saving the exception
from the first failing finalizer and re-raising it so teardown will
still have failed. We reraise the first failing exception because
it might be the cause for other finalizers to fail.

- fix ordering when mock.patch or other standard decorator-wrappings
are used with test methods. This fixues issue346 and should
are used with test methods. This fixes issue346 and should
help with random "xdist" collection failures. Thanks to
Ronny Pfannschmidt and Donald Stufft for helping to isolate it.

Expand Down Expand Up @@ -8972,7 +8972,7 @@ Bug fixes:
partially failed (finalizers would not always be called before)

- fix issue320 - fix class scope for fixtures when mixed with
module-level functions. Thanks Anatloy Bubenkoff.
module-level functions. Thanks Anatoly Bubenkoff.

- you can specify "-q" or "-qq" to get different levels of "quieter"
reporting (thanks Katarzyna Jachim)
Expand Down Expand Up @@ -9394,7 +9394,7 @@ Bug fixes:
unexpected exceptions
- fix issue47: timing output in junitxml for test cases is now correct
- fix issue48: typo in MarkInfo repr leading to exception
- fix issue49: avoid confusing error when initizaliation partially fails
- fix issue49: avoid confusing error when initialization partially fails
- fix issue44: env/username expansion for junitxml file path
- show releaselevel information in test runs for pypy
- reworked doc pages for better navigation and PDF generation
Expand Down Expand Up @@ -9519,7 +9519,7 @@ Bug fixes:
collection-before-running semantics were not
setup as with pytest 1.3.4. Note, however, that
the recommended and much cleaner way to do test
parametraization remains the "pytest_generate_tests"
parameterization remains the "pytest_generate_tests"
mechanism, see the docs.

2.0.0 (2010-11-25)
Expand Down
2 changes: 1 addition & 1 deletion doc/en/deprecations.rst
Expand Up @@ -427,7 +427,7 @@ Now :class:`~pytest.Class` collects the test methods directly.
Most plugins which reference ``Instance`` do so in order to ignore or skip it,
using a check such as ``if isinstance(node, Instance): return``.
Such plugins should simply remove consideration of ``Instance`` on pytest>=7.
However, to keep such uses working, a dummy type has been instanted in ``pytest.Instance`` and ``_pytest.python.Instance``,
However, to keep such uses working, a dummy type has been instanced in ``pytest.Instance`` and ``_pytest.python.Instance``,
and importing it emits a deprecation warning. This was removed in pytest 8.


Expand Down
2 changes: 1 addition & 1 deletion doc/en/example/customdirectory/conftest.py
Expand Up @@ -21,7 +21,7 @@ def collect(self):

@pytest.hookimpl
def pytest_collect_directory(path, parent):
# Use our custom collector for directories containing a `mainfest.json` file.
# Use our custom collector for directories containing a `manifest.json` file.
if path.joinpath("manifest.json").is_file():
return ManifestDirectory.from_parent(parent=parent, path=path)
# Otherwise fallback to the standard behavior.
Expand Down
2 changes: 1 addition & 1 deletion doc/en/getting-started.rst
Expand Up @@ -274,7 +274,7 @@ Continue reading
Check out additional pytest resources to help you customize tests for your unique workflow:

* ":ref:`usage`" for command line invocation examples
* ":ref:`existingtestsuite`" for working with pre-existing tests
* ":ref:`existingtestsuite`" for working with preexisting tests
* ":ref:`mark`" for information on the ``pytest.mark`` mechanism
* ":ref:`fixtures`" for providing a functional baseline to your tests
* ":ref:`plugins`" for managing and writing plugins
Expand Down
2 changes: 1 addition & 1 deletion doc/en/how-to/writing_hook_functions.rst
Expand Up @@ -100,7 +100,7 @@ object, the wrapper may modify that result, but it's probably better to avoid it

If the hook implementation failed with an exception, the wrapper can handle that
exception using a ``try-catch-finally`` around the ``yield``, by propagating it,
supressing it, or raising a different exception entirely.
suppressing it, or raising a different exception entirely.

For more information, consult the
:ref:`pluggy documentation about hook wrappers <pluggy:hookwrappers>`.
Expand Down
2 changes: 1 addition & 1 deletion doc/en/naming20.rst
Expand Up @@ -8,7 +8,7 @@ If you used older version of the ``py`` distribution (which
included the py.test command line tool and Python name space)
you accessed helpers and possibly collection classes through
the ``py.test`` Python namespaces. The new ``pytest``
Python module flaty provides the same objects, following
Python module flatly provides the same objects, following
these renaming rules::

py.test.XYZ -> pytest.XYZ
Expand Down
2 changes: 1 addition & 1 deletion doc/en/reference/fixtures.rst
Expand Up @@ -39,7 +39,7 @@ Built-in fixtures
Store and retrieve values across pytest runs.

:fixture:`doctest_namespace`
Provide a dict injected into the docstests namespace.
Provide a dict injected into the doctests namespace.

:fixture:`monkeypatch`
Temporarily modify classes, functions, dictionaries,
Expand Down