Bruno Oliveira
8c9ea5e055
Fix warnings with attrs 19.2 and fix object assertions ( #5902 )
...
Fix warnings with attrs 19.2 and fix object assertions
2019-10-06 08:47:17 -03:00
Anthony Sottile
c58b0fb4ac
Use ATTRS_EQ_FIELD for attrs 19.2 compat
2019-10-05 18:16:35 -07:00
Anthony Sottile
4011af68cd
Merge pull request #5910 from pytest-dev/asottile-patch-1
...
Fix dynamic scoping changelog link
2019-10-03 09:39:12 -07:00
Anthony Sottile
9637b3e376
Fix dynamic scoping changelog link
2019-10-03 09:01:08 -07:00
Anthony Sottile
33c3ec66b7
Merge pull request #5898 from kevinjfoley/doc-typo-fix
...
Fix doc typo
2019-10-01 12:58:54 -07:00
Hynek Schlawack
a79acf279a
Fix warnings with attrs 19.2 and fix object assertions
...
attrs 19.2 deprecated cmp in favor of the dataclass-ish eq/order duo.
This causes deprecation warnings that in turn break some of the cool new deep
object comparisons. Since we at attrs expected this to be a problem, it shipped
with helpers to write backward and forward compatible code.
This PR uses that and avoids changed to minimal versions.
2019-10-01 20:47:59 +02:00
Bruno Oliveira
9a4c0b991b
Update doc: pytest section in setup.cfg ( #5894 )
...
Update doc: pytest section in setup.cfg
2019-10-01 11:45:01 -03:00
Kevin J. Foley
b490f5f979
Fix doc typo
2019-10-01 10:17:26 -04:00
tadashigaki
acfd0fd9d6
Update doc: pytest section in setup.cfg
2019-10-01 02:44:07 +09:00
Bruno Oliveira
88434f1f42
Release 5.2.0 ( #5885 )
...
Release 5.2.0
2019-09-29 10:26:06 -03:00
Florian Bruhin
4d01740be3
Merge pull request #5887 from asottile/fix_attributes_docs_pytester
...
Fix attribute docs in _pytest.pytester
2019-09-29 14:22:54 +02:00
Anthony Sottile
07792c7113
Fix attribute docs in _pytest.pytester
2019-09-28 18:19:53 -07:00
Bruno Oliveira
068ef90b92
Preparing release version 5.2.0
2019-09-28 21:18:37 -04:00
Bruno Oliveira
065773aa97
Use 'python3' instead of 'python3.6' on tox
...
This allows us to use python3.7+ to use tox
2019-09-28 21:16:20 -04:00
Anthony Sottile
b62276826c
Merge pull request #5886 from nicoddemus/setup-plan-custom-items-5884
...
Fix --setup-only and --setup-show for custom pytest items
2019-09-28 18:08:36 -07:00
Bruno Oliveira
7bdfba3578
Fix --setup-only and --setup-show for custom pytest items
...
Fix #5884
2019-09-28 11:52:09 -03:00
Daniel Hahler
6bfd30d169
Merge pull request #5878 from blueyed/codecov-retry-6
...
ci: codecov: use 6 retries with curl
2019-09-24 10:30:23 +02:00
Daniel Hahler
7731e45615
ci: codecov: use 6 retries with curl
...
This should result in retries of 1+2+4+8+16+32 = 63s.
Ref: https://github.com/pytest-dev/pytest/pull/5869#issuecomment-534235437
2019-09-23 20:58:52 +02:00
Anthony Sottile
8806b1f531
Merge pull request #5875 from asottile/patch-1
...
Make sure to quote `sys.executable` as we're running a shell
2019-09-23 18:55:33 +02:00
Anthony Sottile
19c9e53604
Make sure to quote `sys.executable` as we're running a shell
2019-09-23 08:58:56 -07:00
Bruno Oliveira
c28b63135f
Merge master into features ( #5874 )
...
Merge master into features
2019-09-23 12:44:20 -03:00
Bruno Oliveira
7c64d5d882
Do not call python directly but use sys.executable. Fixes #5872 ( #5873 )
...
Do not call python directly but use sys.executable. Fixes #5872
2019-09-23 12:28:00 -03:00
Bruno Oliveira
d3d9f9f668
Merge remote-tracking branch 'upstream/master' into mm
2019-09-23 12:09:01 -03:00
Bruno Oliveira
018edf2a0e
Change report-coverage.sh in attempt to fix Azure ( #5869 )
...
Change report-coverage.sh in attempt to fix Azure
2019-09-23 12:01:19 -03:00
Tomáš Chvátal
04c01fb606
test_argcomplete do not call python directly #5872
...
Use sys.executable to detect which python we should actually be testing.
2019-09-23 16:38:15 +02:00
Daniel Hahler
ea0c7e43b6
Remove unneeded codecov options (implied with "-f")
2019-09-23 02:26:53 +02:00
Bruno Oliveira
de8fdab7a9
Change report-coverage.sh in attempt to fix Azure
...
Recently sometimes Azure has failed with:
++ curl -s https://codecov.io/bash
bash: /dev/fd/63: No such file or directory
This attempts to fix this by modifying report-coverage.sh slightly.
2019-09-21 16:02:48 -03:00
Daniel Hahler
c1361b48f8
Merge pull request #5868 from blueyed/mm
...
Merge master into features
2019-09-21 16:29:49 +02:00
Bruno Oliveira
1b4ad7774b
Fix logging doc: change x.level to x.levelno ( #5866 )
...
Fix logging doc: change x.level to x.levelno
2019-09-21 11:28:40 -03:00
Daniel Hahler
409cc2946a
Merge master into features
2019-09-21 16:22:48 +02:00
Bruno Oliveira
3114be9181
Revert "Show banner/full page for the Digital Climate Strike (#… ( #5867 )
...
Revert "Show banner/full page for the Digital Climate Strike (#5861 )"
2019-09-21 11:09:34 -03:00
Bruno Oliveira
e4103cb02c
Release version 5.1.3 ( #5859 )
...
Release version 5.1.3
2019-09-21 10:56:16 -03:00
Bruno Oliveira
217605c217
Revert "Show banner/full page for the Digital Climate Strike ( #5861 )"
...
This reverts commit c8cf748c49
, reversing
changes made to 702acdba46
.
2019-09-21 10:38:10 -03:00
James Cooke
2fcf21a6c7
Fix logging doc: change x.level to x.levelno
2019-09-20 18:38:47 +01:00
Bruno Oliveira
c8cf748c49
Show banner/full page for the Digital Climate Strike ( #5861 )
...
Show banner/full page for the Digital Climate Strike
2019-09-19 10:49:10 -03:00
Bruno Oliveira
249b53e623
Show banner/full page for the Ditigal Climate Strike
...
As discussed in the mailing list, pytest will join the
digital strike for the climate on Sep 20th. This will show
a closable banner on the docs until the date, and when the date
comes the banner will become a (closable) full page.
I will also pin an issue saying that the developers won't be
available on Sep 20th.
2019-09-19 08:26:25 -03:00
Bruno Oliveira
9669413b1f
Merge pull request #5776 from aklajnert/1682-dynamic-scope
...
Implemented the dynamic scope feature.
2019-09-19 08:22:45 -03:00
Andrzej Klajnert
e2382e96ed
Minor cleanup in tests.
2019-09-19 11:13:22 +02:00
Bruno Oliveira
1a9f4a51cb
Preparing release version 5.1.3
2019-09-18 10:11:59 -03:00
Bruno Oliveira
892bdd59dc
Normalize all summary durations, including quiet ones
2019-09-18 10:10:25 -03:00
Bruno Oliveira
df46afc96d
Change fixture argument handling tests to unit-tests
2019-09-18 07:50:35 -03:00
Bruno Oliveira
6918d07560
Merge remote-tracking branch 'upstream/features' into aklajnert/1682-dynamic-scope
2019-09-18 07:44:18 -03:00
Daniel Hahler
c997c32004
Merge pull request #5856 from blueyed/mm
...
Merge master into features
2019-09-17 21:47:40 +02:00
Daniel Hahler
450409d123
Merge master into features
...
Conflicts:
src/_pytest/reports.py
(via 7259c453d
, moved the type annotation; setting it to `None`
was removed in 3c82b1cb9
already)
2019-09-17 12:46:36 +02:00
Daniel Hahler
702acdba46
Merge pull request #5811 from blueyed/fulltrace-pytest-raises
...
Handle --fulltrace with pytest.raises
2019-09-14 02:09:36 +02:00
Daniel Hahler
f832ac3316
Handle --fulltrace with pytest.raises
...
This changes `_repr_failure_py` to use `tbfilter=False` always.
2019-09-14 01:41:43 +02:00
Bruno Oliveira
9422e10322
Fix regression due to different cases on Windows ( #5840 )
...
Fix regression due to different cases on Windows
2019-09-13 18:11:12 -03:00
Bruno Oliveira
5c3b4a6f52
Add CHANGELOG entry for #5792
2019-09-12 08:05:50 -03:00
Christian Neumüller
05850d73bd
Re-introduce Christian Neumüller to AUTHORS
...
The introduction was reverted by cd29d56
2019-09-12 08:05:50 -03:00
Bruno Oliveira
b48f51eb03
Use Path() objects to store conftest files
...
Using Path().resolve() is better than py.path.realpath because
it resolves to the correct path/drive in case-insensitive file systems (#5792 ):
>>> from py.path import local
>>> from pathlib import Path
>>>
>>> local('d:\\projects').realpath()
local('d:\\projects')
>>> Path('d:\\projects').resolve()
WindowsPath('D:/projects')
Fix #5819
2019-09-12 08:05:50 -03:00