20
0
Files
python-pytest-check/python-pytest-check.changes
2026-04-12 19:47:50 +02:00

177 lines
7.4 KiB
Plaintext

-------------------------------------------------------------------
Sun Apr 12 17:41:06 UTC 2026 - Dirk Müller <dmueller@suse.com>
- update to 2.8.0:
* Support Request #122: Feature proposal: Capability to mark
checks as xfail
* Allow CheckContextManager to catch any exception, not just
AssertionError (#198).
* Non-assertion exceptions (IndexError, KeyError,
AttributeError, etc.) are now properly caught and reported as
check failures.
* (typing) Set comparison function types such that None is not
allowed
* Passing `None` to comparison functions like `greater()`,
`less()`, etc. used to raise an exception, which caused a
test failure and stopped the test.
* (typing) Allow numpy floats with comparison functions to pass
mypy.
* (typing) Allow mixed `int`/`float` arguments in strict mypy
for comparison helpers by adding `float` numeric overloads
for `greater()`, `greater_equal()`, `less()`, and
`less_equal()` in `check_functions.py`.
* Ignore dist-packages in pseudo stack trace - Fixes #196 -
* (typing) Resolve remaining mypy errors for `import
pytest_check as check` usage; internal adjustments in
`check_functions.py`.
* (typing) Update internal `_Comparable*` protocol comparison
signatures to satisfy strict mypy checks.
* (tox) Enable and expand `mypy` env checks to include
`examples/`.
* (tox) Install `httpx` in the `mypy` env so example type
checking works without import ignores.
* (examples) Switch decorator usage in
`test_example_check_func_decorator.py` to import `check_func`
directly for static type checking.
* (examples) Add `test_example_context_manager_type.py` to
document and validate context-manager fixture typing
behavior.
* (docs) Document custom message support (`msg`) in
`check.raises()`.
* (tests) Add tests for custom messages in `check.raises()`.
* (docs) Document that built-in check methods return `bool`
values.
* (docs) Update pseudo-traceback examples to reflect the
default single pseudo-traceback and show how to increase it
with `--check-max-tb=5`.
* (docs) Add `check.call_on_fail()` section with usage
guidance.
* (examples) Add runnable logging example in
`examples/logging_to_a_file/`.
* (tests) Make `test_raises_custom_msg` compatible with pytest
< 7.3 short-summary output.
* Fix #190: pyright errors
* Fix #145: Is the 'raises' parameter in xfail ignored? - not
anymore
* Greater/less_equal support numpy scalars #189 - Thanks
-------------------------------------------------------------------
Wed Nov 5 17:10:03 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
- update to 2.6.0:
* raises returns the exception value, so the excpected error message can be verified
* raises & any_failures exported from top init.py module so that mypy does not complain that they are not explicitly exported
* Make _Comparable* protocols compatible with builtins
* Turn on testing for Python 3.14 in CI
* Relative paths in tracebacks
* Add testing of Python 3.14
* Fixes a weird corner case where an internal error could be generated
* Set a minimum pluggy version during type checking
* Add type hints, remove support for Python 3.8
* Fixes check doesn't respect runxfail option
* Add testing for Python 3.13 to GH actions
* Add testing for Python 3.13 and 3.14 to tox.ini
* Switch packackaching from flit to hatchling
- change BuildRequires from flit-core >= 2 to hatchling
- Add pytest-check-no-new-classifiers.patch: to remove new classifiers for older hatchling version
-------------------------------------------------------------------
Sat Aug 31 12:11:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.4.1:
* Added `is_nan()` and `is_not_nan()`
* Drop Python 3.7
* Add testing for Python 3.12
* Add tox-uv to tox.ini and main.yml
-------------------------------------------------------------------
Thu Feb 1 20:54:06 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.3.1:
* Documentation Update, README.md
* Turn help function list into a table with param lists
* Show an alternative method of creating a helper function
using `check.fail()`
* `fail(msg)` - indicate test failure, but don't stop testing
* Summaries from 2.2.3 are cool, but don't work with xdist
-------------------------------------------------------------------
Tue Jan 9 21:33:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.2.4:
* fix 153
* Summaries from 2.2.3 are cool, but don't work for pytest <
7.3; Remove them for earlier pytest
* Add tox test run for pytest 7.0.0
* Change dependencies to require 7.0.0 pytest
-------------------------------------------------------------------
Fri Jan 5 17:11:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.2.3:
* Check failure info now shows up in summaries.
-------------------------------------------------------------------
Mon Oct 2 14:56:35 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.2.2:
* fixed Issue #7
-------------------------------------------------------------------
Thu Sep 7 09:23:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.2.1:
* Increase Python range to include 3.7.0. Thanks EliahKagan
-------------------------------------------------------------------
Mon Jul 24 18:46:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.2.0:
* pseudo traceback additions
`-l` or `--showlocals` shows locals
`__tracebackhide__ = True` is honored.
* Fix 127 IndexError when running a check in a thread
* include tests an examples in sdist - pr 121
* README.md - clean up documentation for `--check-max-tb`.
* Minor internal cleanup - removed some debug code.
* `check.call_on_fail(func)` - ***Experimental***
* Name changed from `check.set_failure_callback(func)`.
* This "func" function will be called for each failed check,
and needs to accept a string parameter.
* With the following change, the default is now pretty darn
fast, and most people will not need to modify any settings to
get most of the speed improvements.
* `--check-max-tb=<int>` - sets the max number of pseudo-
traceback reports per test function.
* `check.set_no_tb` and `--set-no-tb` will be removed in a
future release. (probably soon)
* Since `--check-max-tb` is more useful, the default for
`--check-max-tb` is 1, which is already pretty fast.
* And `--check-max-tb=0` has the same effect as `--check-no-
tb`.
* Most changes are related to speedup improvements.
* use `--check-no-tb --check-max-report=10` to get super zippy.
* `check.between()` added just for fun
* Rewrote `check.equal()` and other helper functions to not use
assert.
* `--check-no-tb` - turn off tracebacks
* `--check-max-report` - limit reported failures per test
function
* `--check-max-fail` - limit failures per test function
* `check.set_no_tb()` - turn off tracebacks for one test
function
* `check.set_max_report()` - limit reports for one test
function
* `check.set_max_fail()` - limit failures for one test function
* `check.between(b, a, c)` - check that a < b < c
* Add `any_failures()`.
* While using the `check` fixture, allow `check.check` as a
context manager. this is unnecessary, the `check` fixture
now works as a context manager.
-------------------------------------------------------------------
Thu Jul 14 17:07:11 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v1.0.5
- Required to test pyhton-sphobjinv