pre-commit-ci[bot]
894338e94d
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-03-15 11:23:54 +00:00
Bruno Oliveira
00c270c964
Fix typing errors after mypy update
2023-03-15 08:21:57 -03:00
Felix Hofstätter
168019aff8
[7.2.x] Correctly handle tracebackhide for chained exceptions
2023-03-15 11:11:57 +00:00
github-actions[bot]
85c34fd20d
[7.2.x] Fix different behavior with unittest when warlus operator ( #10803 )
...
Co-authored-by: Alessio Izzo <alessio.izzo86@gmail.com>
2023-03-11 10:59:56 -03:00
github-actions[bot]
9693556f27
[7.2.x] Fix test_cmdline_python_namespace_package ( #10789 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2023-03-03 15:52:49 +00:00
Teejay
432a60bd52
[7.2.x] Fix fixtures named teardown being considered by nose
2023-01-27 17:35:34 +00:00
github-actions[bot]
76bef68f3e
[7.2.x] Add check for zero denominator in approx ( #10689 )
...
Co-authored-by: Jay <43951088+jayendra-patil33@users.noreply.github.com>
2023-01-24 10:30:54 +00:00
q0w
d1b9660402
[7.2.x] Check if config args and args_source exist
2023-01-21 11:21:12 +00:00
Bruno Oliveira
9c103aef2f
Merge pull request #10673 from pytest-dev/backport-10660-to-7.2.x
...
[7.2.x] Derive pytest.raises from AbstractContextManager
2023-01-19 16:44:28 -03:00
Ramsey
5bf361f24e
Fix crash if `--cache-show` and `--help` are passed at the same time
...
Closes #10592
(cherry picked from commit 4d4ed42c34
)
2023-01-19 10:06:05 -03:00
Ronny Pfannschmidt
baa938eea5
[7.2.x] Derive pytest.raises from AbstractContextManager
2023-01-18 05:44:44 +00:00
s-padmanaban
f22fbbf9f1
[7.2.x] Dont update cache from xdist worker
2023-01-13 10:16:42 +00:00
Bruno Oliveira
405fd15128
[7.2.x] Fix tests pygments 2.14.0
2023-01-05 15:59:54 +00:00
Prerak Patel
c3b0080c87
[7.2.x] Issue #10506
2022-11-23 17:49:15 +00:00
Daniel Valenzuela
f5d2edc1fc
[7.2.x] issue-10457/show test name when skipping from fixture
2022-11-18 12:22:15 +00:00
Bruno Oliveira
dbd4c5fb2f
[7.2.x] Fix test_raising_repr test
2022-11-09 23:21:32 +00:00
Anthony Sottile
02a9371259
adjust tests if py library is installed
2022-10-19 22:28:51 -04:00
Anthony Sottile
dc0cb0d149
fix test pollution of sys.modules
2022-10-19 22:18:50 -04:00
Anthony Sottile
82344ba4f8
add py.path.local tests
2022-10-19 21:42:40 -04:00
dependabot[bot]
8490ff5277
build(deps): Bump pytest-twisted in /testing/plugins_integration
...
Bumps [pytest-twisted](https://github.com/pytest-dev/pytest-twisted ) from 1.13.4 to 1.14.0.
- [Release notes](https://github.com/pytest-dev/pytest-twisted/releases )
- [Commits](https://github.com/pytest-dev/pytest-twisted/compare/v1.13.4...v1.14.0 )
---
updated-dependencies:
- dependency-name: pytest-twisted
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 03:02:02 +00:00
Zac Hatfield-Dodds
3dac833a52
Merge pull request #10383 from gabriellandau/dont-pdb-break-for-skiptest-exceptions
2022-10-15 11:14:26 -07:00
Zac Hatfield-Dodds
36b6384ff2
Merge pull request #10384 from tony/showlocals-negation
2022-10-15 10:43:59 -07:00
Ronny Pfannschmidt
31df38f6a7
Merge pull request #10356 from RonnyPfannschmidt/fix-7792-marks-walk-mro
...
fix #7792 : consider marks from the mro
2022-10-15 17:19:27 +02:00
Tony Narlock
3a8d401ac7
test(--no-showlocals): Should hide locals when addopts=--showlocals
2022-10-14 16:25:15 -05:00
Gabriel Landau
452617686c
Test fix
2022-10-14 13:53:06 -04:00
Gabriel Landau
6e7917c1a0
Don't break into `pdb` for `raise unittest.SkipTest()`
2022-10-13 18:20:46 -04:00
Ronny Pfannschmidt
f13f4360d3
Apply suggestions from code review
...
Co-authored-by: Ran Benita <ran@unusedvar.com>
2022-10-12 10:20:16 +02:00
Bruno Oliveira
f5797abb62
Merge pull request #10361 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-mock-3.10.0
...
build(deps): Bump pytest-mock from 3.9.0 to 3.10.0 in /testing/plugins_integration
2022-10-10 08:03:35 -03:00
dependabot[bot]
d8c5e8805f
build(deps): Bump pytest-mock in /testing/plugins_integration
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.9.0...v3.10.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 03:03:48 +00:00
dependabot[bot]
07b380bb3a
build(deps): Bump django in /testing/plugins_integration
...
Bumps [django](https://github.com/django/django ) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/4.1.1...4.1.2 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 03:03:45 +00:00
itxasos23
78c2c48c67
Handle NFC/NFD strings that normalize to the same string. ( #10355 )
...
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2022-10-09 17:09:33 -07:00
Simon K
3bf2bc55b1
Add deprecations for tests written for `nose` ( #9907 )
...
Fixes #9886
2022-10-09 17:16:33 -03:00
Ronny Pfannschmidt
c42bb36009
fixup: mark mro test reformatt
2022-10-08 08:35:53 +02:00
Ronny Pfannschmidt
13e594a314
fixup: mark mro test reformatt
2022-10-08 08:35:26 +02:00
Ronny Pfannschmidt
d8c783268c
fix #7792 : consider marks from the mro
...
closes #9105 as superseeded
2022-10-08 08:18:26 +02:00
Bruno Oliveira
4545fcff05
Merge pull request #10335 from pytest-dev/dependabot/pip/testing/plugins_integration/pytest-mock-3.9.0
2022-10-07 11:00:10 -03:00
Ronny Pfannschmidt
14919c4bbb
fix #10342 : put location into warning exceptions
...
as the warning systems own warn_explicit looses the information
we add them explicitly to the warning exceptions
2022-10-06 11:44:05 +02:00
dependabot[bot]
eab875509d
build(deps): Bump pytest-mock in /testing/plugins_integration
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.8.2...v3.9.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 03:01:46 +00:00
Ronny Pfannschmidt
ce3e2e922b
bump plugin test pytest cov pin
2022-09-28 22:28:03 +02:00
Ronny Pfannschmidt
b1fb9a9c8d
handle non-true options in hookspec warning
2022-09-20 16:22:26 +02:00
Ronny Pfannschmidt
0fdacb6db5
deprecate hook configuration via marks/attributes
...
fixes #4562
2022-09-20 16:22:26 +02:00
dependabot[bot]
d416fbab91
build(deps): Bump twisted in /testing/plugins_integration
...
Bumps [twisted](https://github.com/twisted/twisted ) from 22.4.0 to 22.8.0.
- [Release notes](https://github.com/twisted/twisted/releases )
- [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst )
- [Commits](https://github.com/twisted/twisted/compare/twisted-22.4.0...twisted-22.8.0 )
---
updated-dependencies:
- dependency-name: twisted
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 03:01:53 +00:00
dependabot[bot]
649b2e7f30
build(deps): Bump django in /testing/plugins_integration
...
Bumps [django](https://github.com/django/django ) from 4.1 to 4.1.1.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/commits )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 13:09:31 +00:00
Gergely Kalmár
adaa463ee3
Ignore editable installation modules ( #10231 )
...
Fixes #10230
2022-08-26 09:46:47 -03:00
John Litborn
69f2855cc8
fallback to native traceback when handling ExceptionGroup (take 2) [SQUASH] ( #10209 )
...
* Squashed commit of the following:
commit 41d339c46763bbe26123e1e6504b6e32290e33e1
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 17:01:04 2022 +0800
test in all py versions
commit b3572a5a12672228c3276fc8c8e05980dfb7888a
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 16:41:06 2022 +0800
add test
commit 7166a2a51e4f99046b028b663c193d8b558c7fd4
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 16:00:07 2022 +0800
update changelog
commit b958c73d489157f0c0d4e46425083a5e2e2bc851
Author: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Thu Jun 23 07:50:52 2022 +0000
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
commit ea7f376c6ca37c40c83df0e4a1cfaaedb34bae91
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 15:48:21 2022 +0800
Fix MyPy
commit 97469beb1da40257e9a061a5e19548546c9312c4
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 15:03:48 2022 +0800
fix if ExceptionGroup not exist
commit 84e553642cd69b4d499231d733df91ebfa84c7ad
Author: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Thu Jun 23 03:43:27 2022 +0000
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
commit 76bbef449b88bbd74fb5cca3b5293337a624ef03
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 11:40:41 2022 +0800
adding changelog
commit db82bebc5a4969e2083adcd97bdfd2a63bb17d98
Author: Cheukting <cheukting.ho@gmail.com>
Date: Thu Jun 23 11:33:10 2022 +0800
fall back to native when handeling to exception groups
* Typed ExceptionGroupTypes and changed to BaseExceptionGroup, fixed exceptionchain (excinfo->excinfo_, set reprcrash. Extended tests, though they're wip.
* added exceptiongroup to pre-commit-config, moved away from tuple to directly defining BaseExceptionGroup, added block comment, added match line for inner exception, changked mark.skipif to importorskip to not need top-level import, changed tox.ini a bit - only uncovered should now be py37 without exceptiongroup, due to hypothesis
* added py311-exceptiongroup to github CI, exceptiongroup is now a hard dependency on py<3.11, renamed bad variable names
* added use_coverage to ubuntu-py311
* import BaseExceptionGroup with explicit version check instead of try/catch
* removed from CI, added comments to tox and pre-commit
2022-08-17 09:16:32 -07:00
Nhieuvu1802
c72d202317
build(deps): Bump pytest-asyncio in /testing/plugins_integration ( #10212 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 20:56:51 -03:00
holesch
cc0092b9d8
JUnit XML: Escape error messages in setup/teardown ( #10190 )
...
Co-authored-by: Holesch, Simon (BSH) <simon.holesch@bshg.com>
2022-08-12 11:11:03 +02:00
dependabot[bot]
433efaeaa9
build(deps): Bump django in /testing/plugins_integration ( #10195 )
...
Bumps [django](https://github.com/django/django ) from 4.0.6 to 4.1.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/4.0.6...4.1 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 11:09:06 +02:00
Robert O'Shea
1c31a7e659
Added file-like methods to DontReadFromInput ( #10173 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Fixes #10150
2022-07-31 13:44:02 +00:00
Miro Hrončok
09b2c95320
Adjust tests for a last minute Python 3.11 change in the traceback format
...
See https://github.com/python/cpython/issues/93883
and https://github.com/python/cpython/pull/93994
Fixes https://github.com/pytest-dev/pytest/issues/10131
2022-07-13 17:14:37 +02:00