Skip to content

Commit 55debfa

Browse files
authored
Fix typos (#9424)
1 parent 7a42db2 commit 55debfa

24 files changed

+35
-34
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Katerina Koukiou
185185
Keri Volans
186186
Kevin Cox
187187
Kevin J. Foley
188+
Kian-Meng Ang
188189
Kodi B. Arfer
189190
Kostis Anagnostopoulos
190191
Kristoffer Nordström

doc/en/announce/release-2.5.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ clear information about the circumstances and a simple example which
1111
reproduces the problem.
1212

1313
The issue tracker is of course not empty now. We have many remaining
14-
"enhacement" issues which we'll hopefully can tackle in 2014 with your
14+
"enhancement" issues which we'll hopefully can tackle in 2014 with your
1515
help.
1616

1717
For those who use older Python versions, please note that pytest is not

doc/en/changelog.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ Bug Fixes
538538
the ``tmp_path``/``tmpdir`` fixture). Now the directories are created with
539539
private permissions.
540540

541-
pytest used to silenty use a pre-existing ``/tmp/pytest-of-<username>`` directory,
541+
pytest used to silently use a pre-existing ``/tmp/pytest-of-<username>`` directory,
542542
even if owned by another user. This means another user could pre-create such a
543543
directory and gain control of another user's temporary directory. Now such a
544544
condition results in an error.
@@ -1304,7 +1304,7 @@ Improvements
13041304
is not displayed by default for passing tests. This change makes the mistake
13051305
visible during testing.
13061306

1307-
You may supress this behavior temporarily or permanently by setting
1307+
You may suppress this behavior temporarily or permanently by setting
13081308
``logging.raiseExceptions = False``.
13091309

13101310

@@ -1759,7 +1759,7 @@ Bug Fixes
17591759
it was swallowed and ignored (regression in pytest 5.1.0).
17601760

17611761

1762-
- :issue:`6801`: Do not display empty lines inbetween traceback for unexpected exceptions with doctests.
1762+
- :issue:`6801`: Do not display empty lines in between traceback for unexpected exceptions with doctests.
17631763

17641764

17651765
- :issue:`6802`: The :fixture:`testdir fixture <testdir>` works within doctests now.
@@ -4628,7 +4628,7 @@ Bug Fixes
46284628
- Fixed a bug where stdout and stderr were logged twice by junitxml when a test
46294629
was marked xfail. (:issue:`3491`)
46304630

4631-
- Fix ``usefixtures`` mark applyed to unittest tests by correctly instantiating
4631+
- Fix ``usefixtures`` mark applied to unittest tests by correctly instantiating
46324632
``FixtureInfo``. (:issue:`3498`)
46334633

46344634
- Fix assertion rewriter compatibility with libraries that monkey patch
@@ -8009,7 +8009,7 @@ Bug fixes:
80098009
or through plugin hooks. Also introduce a "--strict" option which
80108010
will treat unregistered markers as errors
80118011
allowing to avoid typos and maintain a well described set of markers
8012-
for your test suite. See exaples at http://pytest.org/en/stable/how-to/mark.html
8012+
for your test suite. See examples at http://pytest.org/en/stable/how-to/mark.html
80138013
and its links.
80148014
- issue50: introduce "-m marker" option to select tests based on markers
80158015
(this is a stricter and more predictable version of '-k' in that "-m"
@@ -8321,7 +8321,7 @@ Bug fixes:
83218321
- fix issue57 -f|--looponfail to work with xpassing tests (thanks Ronny)
83228322
- fix issue92 collectonly reporter and --pastebin (thanks Benjamin Peterson)
83238323
- fix py.code.compile(source) to generate unique filenames
8324-
- fix assertion re-interp problems on PyPy, by defering code
8324+
- fix assertion re-interp problems on PyPy, by deferring code
83258325
compilation to the (overridable) Frame.eval class. (thanks Amaury Forgeot)
83268326
- fix py.path.local.pyimport() to work with directories
83278327
- streamline py.path.local.mkdtemp implementation and usage
@@ -8395,7 +8395,7 @@ Bug fixes:
83958395
- improve support for raises and other dynamically compiled code by
83968396
manipulating python's linecache.cache instead of the previous
83978397
rather hacky way of creating custom code objects. This makes
8398-
it seemlessly work on Jython and PyPy where it previously didn't.
8398+
it seamlessly work on Jython and PyPy where it previously didn't.
83998399

84008400
- fix issue96: make capturing more resilient against Control-C
84018401
interruptions (involved somewhat substantial refactoring

doc/en/history.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ project:
139139
which adds ``pytest`` (rather than ``py.test``) as the recommended
140140
command-line entry point
141141

142-
Due to this history, it's diffcult to answer the question when pytest was started.
142+
Due to this history, it's difficult to answer the question when pytest was started.
143143
It depends what point should really be seen as the start of it all. One
144144
possible interpretation is to pick Europython 2004, i.e. around June/July
145145
2004.

doc/en/how-to/skipping.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Here is a simple test file with the several usages:
369369

370370
Running it with the report-on-xfail option gives this output:
371371

372-
.. FIXME: Use $ instead of ! again to reenable regendoc once it's fixed:
372+
.. FIXME: Use $ instead of ! again to re-enable regendoc once it's fixed:
373373
https://github.com/pytest-dev/pytest/issues/8807
374374
375375
.. code-block:: pytest

doc/en/reference/fixtures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ the one defined in ``tests/test_top.py`` would be unavailable to it because it
208208
would have to step down a level (step inside a circle) to find it.
209209

210210
The first fixture the test finds is the one that will be used, so
211-
:ref:`fixtures can be overriden <override fixtures>` if you need to change or
211+
:ref:`fixtures can be overridden <override fixtures>` if you need to change or
212212
extend what one does for a particular scope.
213213

214214
You can also use the ``conftest.py`` file to implement

src/_pytest/_code/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def _truncate_recursive_traceback(
895895
max_frames=max_frames,
896896
total=len(traceback),
897897
)
898-
# Type ignored because adding two instaces of a List subtype
898+
# Type ignored because adding two instances of a List subtype
899899
# currently incorrectly has type List instead of the subtype.
900900
traceback = traceback[:max_frames] + traceback[-max_frames:] # type: ignore
901901
else:

src/_pytest/assertion/rewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def _call_assertion_pass(lineno: int, orig: str, expl: str) -> None:
513513

514514
def _check_if_assertion_pass_impl() -> bool:
515515
"""Check if any plugins implement the pytest_assertion_pass hook
516-
in order not to generate explanation unecessarily (might be expensive)."""
516+
in order not to generate explanation unnecessarily (might be expensive)."""
517517
return True if util._assertion_pass else False
518518

519519

src/_pytest/assertion/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def has_default_eq(
142142
143143
First, we check if the object's __eq__ attribute has __code__,
144144
if so, we check the equally of the method code filename (__code__.co_filename)
145-
to the default onces generated by the dataclass and attr module
145+
to the default one generated by the dataclass and attr module
146146
for dataclasses the default co_filename is <string>, for attrs class, the __eq__ should contain "attrs eq generated"
147147
"""
148148
# inspired from https://github.com/willmcgugan/rich/blob/07d51ffc1aee6f16bd2e5a25b4e82850fb9ed778/rich/pretty.py#L68

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ def inipath(self) -> Optional[Path]:
970970

971971
def add_cleanup(self, func: Callable[[], None]) -> None:
972972
"""Add a function to be called when the config object gets out of
973-
use (usually coninciding with pytest_unconfigure)."""
973+
use (usually coinciding with pytest_unconfigure)."""
974974
self._cleanup.append(func)
975975

976976
def _do_configure(self) -> None:

0 commit comments

Comments
 (0)