You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/changelog.rst
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ Improvements
168
168
- `#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
169
169
as the relative directory.
170
170
171
-
Previoulsy this would raise an :class:`AssertionError`.
171
+
Previously this would raise an :class:`AssertionError`.
172
172
173
173
174
174
- `#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.
@@ -1411,7 +1411,7 @@ Deprecations
1411
1411
``__init__`` method, they should take ``**kwargs``. See
1412
1412
:ref:`uncooperative-constructors-deprecated` for details.
1413
1413
1414
-
Note that a deprection warning is only emitted when there is a conflict in the
1414
+
Note that a deprecation warning is only emitted when there is a conflict in the
1415
1415
arguments pytest expected to pass. This deprecation was already part of pytest
1416
1416
7.0.0rc1 but wasn't documented.
1417
1417
@@ -1453,7 +1453,7 @@ Breaking Changes
1453
1453
- `#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`.
1454
1454
1455
1455
Most plugins which refer to `reportinfo()` only define it as part of a custom :class:`pytest.Item` implementation.
1456
-
Since `py.path.local` is an `os.PathLike[str]`, these plugins are unaffacted.
1456
+
Since `py.path.local` is an `os.PathLike[str]`, these plugins are unaffected.
1457
1457
1458
1458
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)`.
1459
1459
Although preferably, avoid the legacy `py.path.local` and use `pathlib.Path`, or use `item.location` or `item.path`, instead.
@@ -1961,7 +1961,7 @@ Bug Fixes
1961
1961
the ``tmp_path``/``tmpdir`` fixture). Now the directories are created with
1962
1962
private permissions.
1963
1963
1964
-
pytest used to silently use a pre-existing ``/tmp/pytest-of-<username>`` directory,
1964
+
pytest used to silently use a preexisting ``/tmp/pytest-of-<username>`` directory,
1965
1965
even if owned by another user. This means another user could pre-create such a
1966
1966
directory and gain control of another user's temporary directory. Now such a
1967
1967
condition results in an error.
@@ -2688,7 +2688,7 @@ Features
2688
2688
also changes ``sys.modules`` as a side-effect), which works but has a number of drawbacks, like requiring test modules
2689
2689
that don't live in packages to have unique names (as they need to reside under a unique name in ``sys.modules``).
2690
2690
2691
-
``--import-mode=importlib`` uses more finegrained import mechanisms from ``importlib`` which don't
2691
+
``--import-mode=importlib`` uses more fine-grained import mechanisms from ``importlib`` which don't
2692
2692
require pytest to change ``sys.path`` or ``sys.modules`` at all, eliminating much of the drawbacks
2693
2693
of the previous mode.
2694
2694
@@ -2705,7 +2705,7 @@ Improvements
2705
2705
------------
2706
2706
2707
2707
- :issue:`4375`: The ``pytest`` command now suppresses the ``BrokenPipeError`` error message that
2708
-
is printed to stderr when the output of ``pytest`` is piped and and the pipe is
2708
+
is printed to stderr when the output of ``pytest`` is piped and the pipe is
2709
2709
closed by the piped-to program (common examples are ``less`` and ``head``).
2710
2710
2711
2711
@@ -3007,7 +3007,7 @@ Breaking Changes
3007
3007
This hook has been marked as deprecated and not been even called by pytest for over 10 years now.
3008
3008
3009
3009
3010
-
- :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.
3010
+
- :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.
3011
3011
3012
3012
3013
3013
- :issue:`6737`: The ``cached_result`` attribute of ``FixtureDef`` is now set to ``None`` when
@@ -4612,7 +4612,7 @@ Bug Fixes
4612
4612
Improved Documentation
4613
4613
----------------------
4614
4614
4615
-
- :issue:`4974`: Update docs for ``pytest_cmdline_parse`` hook to note availability liminations
4615
+
- :issue:`4974`: Update docs for ``pytest_cmdline_parse`` hook to note availability limitations
4616
4616
4617
4617
4618
4618
@@ -6470,7 +6470,7 @@ Features
6470
6470
Bug Fixes
6471
6471
---------
6472
6472
6473
-
- Fix hanging pexpect test on MacOS by using flush() instead of wait().
6473
+
- Fix hanging pexpect test on macOS by using flush() instead of wait().
6474
6474
(:issue:`2022`)
6475
6475
6476
6476
- Fix restoring Python state after in-process pytest runs with the
@@ -6518,7 +6518,7 @@ Trivial/Internal Changes
6518
6518
------------------------
6519
6519
6520
6520
- Show a simple and easy error when keyword expressions trigger a syntax error
6521
-
(for example, ``"-k foo and import"`` will show an error that you can not use
6521
+
(for example, ``"-k foo and import"`` will show an error that you cannot use
6522
6522
the ``import`` keyword in expressions). (:issue:`2953`)
6523
6523
6524
6524
- Change parametrized automatic test id generation to use the ``__name__``
@@ -8294,7 +8294,7 @@ time or change existing behaviors in order to make them less surprising/more use
8294
8294
one will also have a "reprec" attribute with the recorded events/reports.
8295
8295
8296
8296
- fix monkeypatch.setattr("x.y", raising=False) to actually not raise
8297
-
if "y" is not a pre-existing attribute. Thanks Florian Bruhin.
8297
+
if "y" is not a preexisting attribute. Thanks Florian Bruhin.
8298
8298
8299
8299
- fix issue741: make running output from testdir.run copy/pasteable
8300
8300
Thanks Bruno Oliveira.
@@ -8350,7 +8350,7 @@ time or change existing behaviors in order to make them less surprising/more use
8350
8350
8351
8351
- fix issue854: autouse yield_fixtures defined as class members of
8352
8352
unittest.TestCase subclasses now work as expected.
8353
-
Thannks xmo-odoo for the report and Bruno Oliveira for the PR.
8353
+
Thanks xmo-odoo for the report and Bruno Oliveira for the PR.
8354
8354
8355
8355
- fix issue833: --fixtures now shows all fixtures of collected test files, instead of just the
8356
8356
fixtures declared on the first one.
@@ -8454,7 +8454,7 @@ time or change existing behaviors in order to make them less surprising/more use
8454
8454
github. See https://pytest.org/en/stable/contributing.html .
8455
8455
Thanks to Anatoly for pushing and initial work on this.
8456
8456
8457
-
- fix issue650: new option ``--docttest-ignore-import-errors`` which
8457
+
- fix issue650: new option ``--doctest-ignore-import-errors`` which
8458
8458
will turn import errors in doctests into skips. Thanks Charles Cloud
8459
8459
for the complete PR.
8460
8460
@@ -8642,7 +8642,7 @@ time or change existing behaviors in order to make them less surprising/more use
8642
8642
- cleanup setup.py a bit and specify supported versions. Thanks Jurko
8643
8643
Gospodnetic for the PR.
8644
8644
8645
-
- change XPASS colour to yellow rather then red when tests are run
8645
+
- change XPASS colour to yellow rather than red when tests are run
8646
8646
with -v.
8647
8647
8648
8648
- fix issue473: work around mock putting an unbound method into a class
@@ -8815,15 +8815,15 @@ time or change existing behaviors in order to make them less surprising/more use
8815
8815
Thanks Ralph Schmitt for the precise failure example.
8816
8816
8817
8817
- fix issue244 by implementing special index for parameters to only use
8818
-
indices for paramentrized test ids
8818
+
indices for parametrized test ids
8819
8819
8820
8820
- fix issue287 by running all finalizers but saving the exception
8821
8821
from the first failing finalizer and re-raising it so teardown will
8822
8822
still have failed. We reraise the first failing exception because
8823
8823
it might be the cause for other finalizers to fail.
8824
8824
8825
8825
- fix ordering when mock.patch or other standard decorator-wrappings
8826
-
are used with test methods. This fixues issue346 and should
8826
+
are used with test methods. This fixes issue346 and should
8827
8827
help with random "xdist" collection failures. Thanks to
8828
8828
Ronny Pfannschmidt and Donald Stufft for helping to isolate it.
8829
8829
@@ -9080,7 +9080,7 @@ Bug fixes:
9080
9080
partially failed (finalizers would not always be called before)
9081
9081
9082
9082
- fix issue320 - fix class scope for fixtures when mixed with
9083
-
module-level functions. Thanks Anatloy Bubenkoff.
9083
+
module-level functions. Thanks Anatoly Bubenkoff.
9084
9084
9085
9085
- you can specify "-q" or "-qq" to get different levels of "quieter"
9086
9086
reporting (thanks Katarzyna Jachim)
@@ -9502,7 +9502,7 @@ Bug fixes:
9502
9502
unexpected exceptions
9503
9503
- fix issue47: timing output in junitxml for test cases is now correct
9504
9504
- fix issue48: typo in MarkInfo repr leading to exception
9505
-
- fix issue49: avoid confusing error when initizaliation partially fails
9505
+
- fix issue49: avoid confusing error when initialization partially fails
9506
9506
- fix issue44: env/username expansion for junitxml file path
9507
9507
- show releaselevel information in test runs for pypy
9508
9508
- reworked doc pages for better navigation and PDF generation
@@ -9627,7 +9627,7 @@ Bug fixes:
9627
9627
collection-before-running semantics were not
9628
9628
setup as with pytest 1.3.4. Note, however, that
9629
9629
the recommended and much cleaner way to do test
9630
-
parametraization remains the "pytest_generate_tests"
9630
+
parameterization remains the "pytest_generate_tests"
0 commit comments