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 #12122

Open
wants to merge 78 commits into
base: main
Choose a base branch
from
Open

Spelling #12122

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
77647e4
Refactor private_assert_caplog_records_is_setup_call
jsoref Mar 11, 2024
8fe62f6
Remove _caplog_ from test name
jsoref Mar 11, 2024
a7abe2c
spelling: already
jsoref Mar 10, 2024
3ff72df
spelling: analysis pipelines
jsoref Mar 13, 2024
f016f51
spelling: anatoly
jsoref Mar 10, 2024
7484a84
spelling: and
jsoref Mar 10, 2024
4b16fb6
spelling: automatically
jsoref Mar 10, 2024
de585d1
spelling: bootstrapping
jsoref Mar 10, 2024
a045234
spelling: cachefile
jsoref Mar 11, 2024
d414d4f
spelling: cannot
jsoref Mar 10, 2024
a0b1f52
spelling: case-insensitive
jsoref Mar 10, 2024
13bfc38
spelling: collection
jsoref Mar 11, 2024
bf1103a
spelling: completion
jsoref Mar 11, 2024
e6e06e2
spelling: consuming
jsoref Mar 11, 2024
34060ef
spelling: copy
jsoref Mar 10, 2024
ab8cc1f
spelling: coroutine
jsoref Mar 11, 2024
ef9b183
spelling: deprecation
jsoref Mar 11, 2024
05b212a
spelling: details
jsoref Mar 10, 2024
6ed10f4
spelling: discussions
jsoref Mar 11, 2024
fa75c3f
spelling: doctest
jsoref Mar 11, 2024
4bff7d5
spelling: doctests
jsoref Mar 11, 2024
35533bd
spelling: errors
jsoref Mar 11, 2024
d6cc4d3
spelling: escaped
jsoref Mar 11, 2024
3f6acbb
spelling: evaluable
jsoref Mar 11, 2024
fa1e25d
spelling: failures
jsoref Mar 11, 2024
5694d5a
spelling: fine-grained
jsoref Mar 10, 2024
82fb1dc
spelling: fixes
jsoref Mar 11, 2024
8a66f76
spelling: fixturedef
jsoref Mar 11, 2024
e721a20
spelling: flatly
jsoref Mar 11, 2024
482d011
spelling: forward
jsoref Mar 11, 2024
779cdd7
spelling: forwards
jsoref Mar 14, 2024
5122cf8
spelling: highlighter
jsoref Mar 13, 2024
fcfb850
spelling: information
jsoref Mar 11, 2024
7bf1831
spelling: initial
jsoref Mar 11, 2024
5c1fda8
spelling: initialization
jsoref Mar 11, 2024
dc50ab5
spelling: instanced
jsoref Mar 11, 2024
aa2cb8b
spelling: interact
jsoref Mar 11, 2024
1af8e1a
spelling: internally
jsoref Mar 11, 2024
ad75673
spelling: into
jsoref Mar 10, 2024
a6be7a9
spelling: isinstance
jsoref Mar 11, 2024
158b02f
spelling: its
jsoref Mar 10, 2024
a75aeed
spelling: limitations
jsoref Mar 11, 2024
6b3939e
spelling: macos
jsoref Mar 10, 2024
22936ed
spelling: manifest
jsoref Mar 11, 2024
c8e4d6c
spelling: many
jsoref Mar 10, 2024
375e516
spelling: much
jsoref Mar 10, 2024
ce3c994
spelling: multiline
jsoref Mar 11, 2024
3327c2c
spelling: negative
jsoref Mar 11, 2024
c6d8e77
spelling: oddities
jsoref Mar 13, 2024
c296571
spelling: overridden
jsoref Mar 11, 2024
0ebd18b
spelling: parameterization
jsoref Mar 11, 2024
2dcfe26
spelling: parametrized
jsoref Mar 11, 2024
4585959
spelling: permission
jsoref Mar 11, 2024
16a1cc0
spelling: preexisting
jsoref Mar 10, 2024
fe8e038
spelling: previously
jsoref Mar 12, 2024
ef7ed91
spelling: prioritize
jsoref Mar 12, 2024
faa2f2e
spelling: pytest
jsoref Mar 11, 2024
d372ff2
spelling: raised
jsoref Mar 11, 2024
2a12477
spelling: reentrant
jsoref Mar 10, 2024
ea949ce
spelling: regression
jsoref Mar 11, 2024
57f9adc
spelling: report
jsoref Mar 12, 2024
07268b5
spelling: rootpath
jsoref Mar 12, 2024
90a8c4e
spelling: running
jsoref Mar 11, 2024
8406e52
spelling: something
jsoref Mar 11, 2024
033dc5f
spelling: startdir
jsoref Mar 12, 2024
0fd50b8
spelling: suppressing
jsoref Mar 12, 2024
da213cf
spelling: synchronize
jsoref Mar 12, 2024
6414d1a
spelling: than
jsoref Mar 10, 2024
0b0ce2d
spelling: thanks
jsoref Mar 11, 2024
cfcd16f
spelling: that
jsoref Mar 10, 2024
b9176fa
spelling: the
jsoref Mar 10, 2024
adbe684
spelling: torn_down
jsoref Mar 12, 2024
607cc88
spelling: unaffected
jsoref Mar 11, 2024
eb387a1
spelling: unavailable
jsoref Mar 11, 2024
a72f482
spelling: undoes
jsoref Mar 11, 2024
c20f544
spelling: visibility
jsoref Mar 11, 2024
4988031
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2024
d219472
Revert changes to plugin_list.rst: generated automatically
nicoddemus Mar 16, 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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally in English, doubled words aren't appropriate without punctuation, and often they're just errant.


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.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches other instances of what I have to presume is the same entity.


- 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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's an amusing thing elsewhere about a serious of variations of this word, but this isn't one of them...


- 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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically this is grammatical, but most spell checkers have been able to flag rudimentary grammar errors, so there are a handful of fixes for things like this...

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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some projects don't like changing changelogs. Happy to drop as desired.

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,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both flavors were preexisting in this repository :)

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``,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't be certain that this shouldn't be instantiated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both work I think?

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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be that there's a module flaty, but...

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
2 changes: 1 addition & 1 deletion doc/en/reference/reference.rst
Expand Up @@ -1919,7 +1919,7 @@ All the command-line flags can be obtained by running ``pytest --help``::

general:
-k EXPRESSION Only run tests which match the given substring
expression. An expression is a Python evaluatable
expression. An expression is a Python evaluable
expression where all names are substring-matched
against test names and their parent classes.
Example: -k 'test_method or test_other' matches all
Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/_py/error.py
Expand Up @@ -41,7 +41,7 @@ def __str__(self) -> str:
3: errno.ENOENT,
17: errno.EEXIST,
18: errno.EXDEV,
13: errno.EBUSY, # empty cd drive, but ENOMEDIUM seems unavailiable
13: errno.EBUSY, # empty cd drive, but ENOMEDIUM seems unavailable
22: errno.ENOTDIR,
20: errno.ENOTDIR,
267: errno.ENOTDIR,
Expand Down
4 changes: 2 additions & 2 deletions src/_pytest/_py/path.py
Expand Up @@ -836,7 +836,7 @@ def mtime(self) -> float:
def copy(self, target, mode=False, stat=False):
"""Copy path to target.

If mode is True, will copy copy permission from path to target.
If mode is True, will copy permission from path to target.
If stat is True, copy permission, last modification
time, last access time, and flags from path to target.
"""
Expand Down Expand Up @@ -1047,7 +1047,7 @@ def chmod(self, mode, rec=0):
def pypkgpath(self):
"""Return the Python package path by looking for the last
directory upwards which still contains an __init__.py.
Return None if a pkgpath can not be determined.
Return None if a pkgpath cannot be determined.
"""
pkgpath = None
for parent in self.parts(reverse=True):
Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/assertion/rewrite.py
Expand Up @@ -584,7 +584,7 @@ def _write_and_reset() -> None:
# multi-line assert with message
elif lineno in seen_lines:
lines[-1] = lines[-1][:offset]
# multi line assert with escapd newline before message
# multi line assert with escaped newline before message
else:
lines.append(line[:offset])
_write_and_reset()
Expand Down
4 changes: 2 additions & 2 deletions src/_pytest/assertion/util.py
Expand Up @@ -325,7 +325,7 @@ def _diff_text(left: str, right: str, verbose: int = 0) -> List[str]:
def _compare_eq_iterable(
left: Iterable[Any],
right: Iterable[Any],
highligher: _HighlightFunc,
highlighter: _HighlightFunc,
verbose: int = 0,
) -> List[str]:
if verbose <= 0 and not running_on_ci():
Expand All @@ -340,7 +340,7 @@ def _compare_eq_iterable(
# "right" is the expected base against which we compare "left",
# see https://github.com/pytest-dev/pytest/issues/3333
explanation.extend(
highligher(
highlighter(
"\n".join(
line.rstrip()
for line in difflib.ndiff(right_formatting, left_formatting)
Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/cacheprovider.py
Expand Up @@ -230,7 +230,7 @@ def pytest_make_collect_report(
# Sort any lf-paths to the beginning.
lf_paths = self.lfplugin._last_failed_paths

# Use stable sort to priorize last failed.
# Use stable sort to prioritize last failed.
def sort_key(node: Union[nodes.Item, nodes.Collector]) -> bool:
return node.path in lf_paths

Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/compat.py
Expand Up @@ -53,7 +53,7 @@ def iscoroutinefunction(func: object) -> bool:
def syntax, and doesn't contain yield), or a function decorated with
@asyncio.coroutine.

Note: copied and modified from Python 3.5's builtin couroutines.py to avoid
Note: copied and modified from Python 3.5's builtin coroutines.py to avoid
importing asyncio directly, which in turns also initializes the "logging"
module as a side-effect (see issue #8).
"""
Expand Down
6 changes: 3 additions & 3 deletions src/_pytest/config/__init__.py
Expand Up @@ -454,7 +454,7 @@ def parse_hookimpl_opts(
# (see issue #1073).
if not name.startswith("pytest_"):
return None
# Ignore names which can not be hooks.
# Ignore names which cannot be hooks.
if name == "pytest_plugins":
return None

Expand Down Expand Up @@ -566,8 +566,8 @@ def _set_initial_conftests(
self._noconftest = noconftest
self._using_pyargs = pyargs
foundanchor = False
for intitial_path in args:
path = str(intitial_path)
for initial_path in args:
path = str(initial_path)
# remove node-id syntax
i = path.find("::")
if i != -1:
Expand Down