Ran Benita
73371a03da
Merge pull request #11894 from pytest-dev/backport-11879-to-8.0.x
...
[8.0.x] BUG: fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises
2024-01-30 17:38:43 +02:00
Clément Robert
eb698a64a0
[8.0.x] BUG: fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises
2024-01-30 15:20:56 +00:00
github-actions[bot]
3e48ef64cd
[8.0.x] Add a changelog entry about FixtureManager.getfixtureclosure losing a default argument ( #11891 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-01-30 09:55:36 -03:00
github-actions[bot]
8b70bb64d3
[8.0.x] Catch `OSError` from `getpass.getuser()` ( #11876 )
...
Co-authored-by: Russell Martin <russell@rjm.li>
2024-01-29 02:25:18 +00:00
Ran Benita
169d775eec
Merge pull request #11866 from pytest-dev/backport-11718-to-8.0.x
...
[8.0.x] build(deps): Bump hynek/build-and-inspect-python-package from 1.5.4 to 2.0.0
2024-01-28 00:25:45 +02:00
Ran Benita
42f709ed44
[8.0.x] build(deps): Bump hynek/build-and-inspect-python-package from 1.5.4 to 2.0.0
2024-01-27 22:10:59 +00:00
Ran Benita
24c681d4ee
Merge pull request #11864 from bluetech/release-8.0.0
...
Prepare release version 8.0.0
2024-01-27 23:55:26 +02:00
Ran Benita
478f8233bc
Prepare release version 8.0.0
2024-01-27 23:23:56 +02:00
github-actions[bot]
608590097a
[8.0.x] fix: avoid rounding microsecond to `1_000_000` ( #11863 )
...
Co-authored-by: Dương Quốc Khánh <dqkqdlot@gmail.com>
2024-01-27 16:48:01 +00:00
github-actions[bot]
3b41c65c81
[8.0.x] Escape skip reason in junitxml ( #11845 )
...
Co-authored-by: clee2000 <44682903+clee2000@users.noreply.github.com>
2024-01-19 01:26:06 +00:00
github-actions[bot]
747072ad26
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py ( #11768 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-01-18 15:45:25 -03:00
Bruno Oliveira
011a475baf
Properly attach packages to the GH release notes ( #11839 ) ( #11840 )
...
Follow up to https://github.com/pytest-dev/pytest/pull/11754 , noticed that the latest GitHub release does not contain the attached files.
Output log from the action:
```
🤔 Pattern 'dist/*' does not match any files.
```
2024-01-17 20:56:12 -03:00
Ran Benita
97960bdd14
Merge pull request #11835 from pytest-dev/release-8.0.0rc2
...
Prepare release version 8.0.0rc2
2024-01-17 23:44:01 +02:00
Ran Benita
6be0a3cbf7
Prepare release version 8.0.0rc2
2024-01-17 23:10:03 +02:00
Ran Benita
44ffe07165
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x
...
[8.0.x] testing: temporarily disable test due to hypothesis issue
2024-01-17 23:09:47 +02:00
Ran Benita
14ecb04973
[8.0.x] testing: temporarily disable test due to hypothesis issue
2024-01-17 20:53:29 +00:00
Ran Benita
41c8dabee3
Merge pull request #11831 from bluetech/backport-11825-to-8.0.x
...
[8.0.x] avoid using __file__ in pytest_plugin_registered as can be wrong on Windows
2024-01-17 21:34:56 +02:00
Ran Benita
6f4cbd7cd4
[8.0.x] avoid using __file__ in pytest_plugin_registered as can be wrong on Windows
2024-01-17 15:40:14 +02:00
Ran Benita
b0c7f923aa
Merge pull request #11813 from pytest-dev/backport-11795-to-8.0.x
...
[8.0.x] Improve assert mod not in mods error message
2024-01-14 13:55:56 +02:00
Ran Benita
f15aff06dc
[8.0.x] Improve assert mod not in mods error message
2024-01-14 11:39:34 +00:00
Ran Benita
10c8898845
Merge pull request #11810 from pytest-dev/backport-11708-to-8.0.x
...
[8.0.x] FIX key formating divergence when inspecting plugin dictionary.
2024-01-13 23:02:20 +02:00
Ran Benita
5b7ddedbf9
[8.0.x] FIX key formating divergence when inspecting plugin dictionary.
2024-01-13 19:46:07 +00:00
github-actions[bot]
3ae38baca6
[8.0.x] Add summary for xfails with -rxX option ( #11778 )
...
Co-authored-by: Fabian Sturm <fabio.sturm@gmail.com>
2024-01-05 22:35:47 +00:00
Ran Benita
6123b247d4
Merge pull request #11764 from pytest-dev/backport-11721-to-8.0.x
...
[8.0.x] Fix teardown error reporting when `--maxfail=1`
2024-01-04 11:23:03 +02:00
Bruno Oliveira
bb6f5d1b10
Merge pull request #11766 from pytest-dev/backport-11754-to-8.0.x
...
[8.0.x] Improve GitHub release workflow
2024-01-03 20:33:02 -03:00
Bruno Oliveira
72eb1b7ad1
[8.0.x] Improve GitHub release workflow
2024-01-03 23:15:18 +00:00
Ben Brown
620a454dba
[8.0.x] Fix teardown error reporting when `--maxfail=1`
2024-01-03 17:39:50 +00:00
github-actions[bot]
838151638e
[8.0.x] terminalwriter: fix crash trying to highlight empty source ( #11763 )
...
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-01-03 08:04:57 -03:00
Ran Benita
665e4e58d3
Merge pull request #11744 from pytest-dev/release-8.0.0rc1
...
Prepare release 8.0.0rc1
2024-01-02 10:58:20 +02:00
Ran Benita
e17d5ec871
Prepare release version 8.0.0rc1
2023-12-31 14:40:46 +02:00
Ran Benita
6bec880283
Merge pull request #11753 from bluetech/cherry-pick-release
...
Cherry-pick 7.4.4 release notes
2023-12-31 14:26:50 +02:00
Ran Benita
a1b6b7473b
Merge pull request #11752 from pytest-dev/release-7.4.4
...
Prepare release 7.4.4
(cherry picked from commit 18dcd9d38d
)
2023-12-31 14:15:46 +02:00
Ran Benita
3701d1218b
Merge pull request #11746 from pytest-dev/update-plugin-list/patch-acd445a3f
...
[automated] Update plugin list
2023-12-31 10:26:34 +02:00
Ran Benita
d220880924
nodes: fix tracebacks from collection errors are not getting pruned ( #11711 )
...
Fix #11710 .
2023-12-31 10:14:23 +02:00
Ran Benita
640f84a5aa
Merge pull request #11745 from bluetech/change-marked-fixture-removal
...
Change "Marks applied to fixtures" removal from 8 to 9
2023-12-31 10:10:20 +02:00
pytest bot
460c38915d
[automated] Update plugin list
2023-12-31 00:20:30 +00:00
Ran Benita
a71a95b54c
Change "Marks applied to fixtures" removal from 8 to 9
...
The deprecation has only been added in 8.0, so can't be removed in 8.
That will have to wait for 9.
2023-12-30 22:14:40 +02:00
Ran Benita
acd445a3f3
Merge pull request #11646 from bluetech/pkg-collect
...
Rework Session and Package collection
2023-12-30 12:51:48 +02:00
Ran Benita
c7ee55993b
Merge pull request #11736 from pytest-dev/update-plugin-list/patch-52db918a2
...
[automated] Update plugin list
2023-12-30 12:49:17 +02:00
Ran Benita
b9855b244d
Merge pull request #11737 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-12-30 12:35:31 +02:00
pre-commit-ci[bot]
1e5aab1b2b
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1 )
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0 )
2023-12-25 20:43:18 +00:00
pytest bot
f93c0fc34e
[automated] Update plugin list
2023-12-24 00:20:08 +00:00
Michał Górny
52db918a27
Fix handling empty values of NO_COLOR and FORCE_COLOR ( #11712 )
...
* Fix handling empty values of NO_COLOR and FORCE_COLOR
Fix handling NO_COLOR and FORCE_COLOR environment variables to correctly
be ignored when they are set to an empty value, as defined
in the specification:
> Command-line software which adds ANSI color to its output by default
> should check for a NO_COLOR environment variable that, when present
> *and not an empty string* (regardless of its value), prevents
> the addition of ANSI color.
(emphasis mine, https://no-color.org/ )
The same is true of FORCE_COLOR, https://force-color.org/ .
* Streamline testing for FORCE_COLOR and NO_COLOR
Streamline the tests for FORCE_COLOR and NO_COLOR variables, and cover
all possible cases (unset, set to empty, set to "1"). Combine the two
assert functions into one taking boolean parameters. Mock file.isatty
in all circumstances to ensure that the environment variables take
precedence over the fallback value resulting from isatty check (or that
the fallback is actually used, in the case of both FORCE_COLOR
and NO_COLOR being unset).
2023-12-23 10:12:13 +02:00
Ran Benita
54a0ee02ea
Merge pull request #11732 from bluetech/typing-tweaks
...
Some minor typing tweaks
2023-12-22 13:00:52 +02:00
Benjamin Schubert
88ae27da08
Add syntactic highlights to the error explanations ( #11661 )
...
* Put a 'reset' color in front of the highlighting
When doing the highlighting, some lexers will not set the initial color
explicitly, which may lead to the red from the errors being propagated
to the start of the expression
* Add syntactic highlighting to the error explanations
This updates the various error reporting to highlight python code when
displayed, to increase readability and make it easier to understand
2023-12-21 17:11:56 +00:00
Ran Benita
e06a3d02f8
Merge pull request #11715 from pytest-dev/update-plugin-list/patch-047ba83da
...
[automated] Update plugin list
2023-12-21 17:16:29 +02:00
Ran Benita
75f292d9df
Some minor typing tweaks
2023-12-19 23:29:27 +02:00
pre-commit-ci[bot]
581762fcba
[pre-commit.ci] pre-commit autoupdate ( #11722 )
...
updates:
- [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-18 21:43:27 +00:00
Benjamin Schubert
803b190a17
Merge pull request #11660 from BenjaminSchubert/bschubert/simplify-pprint
...
Remove more unused pprint features
2023-12-18 09:04:35 +00:00
Benjamin Schubert
283a746dad
pprint: Remove conversion to int, we only accept those
2023-12-18 08:35:57 +00:00