Daniel Hahler
39ba996133
assertion.rewrite: use ast.NameConstant(None) directly
...
`ast.parse("None")` was added/used in 3e6f1fa2d
for differences between
Python 2/3, but we do not support py2 anymore.
2019-08-12 07:50:52 +02:00
Daniel Hahler
cb481a354a
assertrepr_compare: prefer same maxsize
...
Previously it would say:
> assert '123456789012...901234567890A' == '1234567890123...901234567890B'"
This makes it look like the "3" might be different already.
This is clearer, and it is OK to have potentially one less char in the
right one:
> assert '123456789012...901234567890A' == '123456789012...901234567890B'"
2019-08-12 03:41:14 +02:00
Bruno Oliveira
300f78556f
Show session duration in human-readable format ( #5721 )
...
Show session duration in human-readable format
2019-08-10 23:05:34 -03:00
Daniel Hahler
0db9dade65
test_non_ascii_paste_text: mock call to urlopen
...
Likely to fix flaky coverage due to requests failing sometimes.
Ref: f7e81dab9a...83a1f4bd66
/changes
2019-08-10 23:30:49 +02:00
Daniel Hahler
a77c83a4c3
Merge pull request #5726 from jdufresne/black
...
Update URL: python/black → psf/black
2019-08-10 22:25:38 +02:00
Jon Dufresne
0767f080a4
Update URL: python/black → psf/black
2019-08-10 12:38:13 -07:00
Bruno Oliveira
2498aeaaa5
Merge master into features ( #5717 )
...
Merge master into features
2019-08-10 11:16:40 -03:00
Bruno Oliveira
345df99db7
Show session duration in human-readable format
...
Fix #5707
2019-08-10 10:45:53 -03:00
Anthony Sottile
8665f5652a
Merge pull request #5722 from nicoddemus/improvements-changelog
...
Add new 'improvement' changelog category
2019-08-10 06:31:39 -07:00
Bruno Oliveira
beb457c75e
Add new 'improvement' changelog category
...
This creates a separate section from 'features' for small changes which
don't usually require user intervention, such as:
* Human readable session duration
* New junitxml fields
* Improved colors in terminal
* etc.
The idea is to better match user expectations about new actual
features in the "Features" section of the changelog.
2019-08-10 09:33:51 -03:00
Bruno Oliveira
f7e81dab9a
5669: pytester: add docstrings for Testdir.copy_example ( #5719 )
...
5669: pytester: add docstrings for Testdir.copy_example
2019-08-10 09:00:42 -03:00
Ilya Stepin
ee936b27a8
pytester: fix docstrings
...
Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
2019-08-10 09:12:04 +03:00
martbln
e0ce8b79d5
pytester: add docstrings for Testdir.copy_example
2019-08-10 00:59:14 +03:00
Bruno Oliveira
8ffa3aa65d
Improve docs of pytest.importorskip ( #5718 )
...
Improve docs of pytest.importorskip
2019-08-09 18:28:44 -03:00
Tim Hoffmann
b095e0de47
Improve docs of pytest.importorskip
2019-08-09 21:35:03 +02:00
Bruno Oliveira
2f065a555f
Merge remote-tracking branch 'upstream/master' into release-5.1.0
2019-08-09 12:36:19 -03:00
Bruno Oliveira
ec76f70d71
Remove unused function CallSpec2.setall ( #5716 )
...
Remove unused function CallSpec2.setall
2019-08-09 12:35:07 -03:00
Bruno Oliveira
65e6038111
Validate xunit2 files against the schema ( #5605 )
...
Validate xunit2 files against the schema
2019-08-09 12:34:21 -03:00
Daniel Hahler
9f6da8cbeb
Remove unused function CallSpec2.setall
...
Fixes https://github.com/pytest-dev/pytest/issues/5253 .
2019-08-09 16:34:48 +02:00
Bruno Oliveira
ba72b480b9
Remove xfail marker from test_runs_twice_xdist
...
Apperently it does not hang, let's see how it fares on CI
2019-08-09 10:55:06 -03:00
Bruno Oliveira
ba76080b59
Validate xunit2 files against the schema
...
Fix #5095
2019-08-09 10:55:06 -03:00
Bruno Oliveira
5ecac3c861
Add a code of conduct ( #5711 )
...
Add a code of conduct
2019-08-08 12:37:14 -03:00
Florian Bruhin
0a19439677
Add a code of conduct
...
See #5709 and the mails linked from there
2019-08-08 14:01:29 +02:00
Bruno Oliveira
e772bb6480
trivial doc change ( #5708 )
...
trivial doc change
2019-08-08 08:10:36 -03:00
boris
7560a7b808
trivial doc change
2019-08-07 21:49:30 -06:00
Bruno Oliveira
6c8d8a99f4
pyupgrade docs to Python 3 ( #5705 )
...
pyupgrade docs to Python 3
2019-08-07 07:27:34 -03:00
boris
78de9d4677
replace implicit code tag with colon .replace("::\n\n.. code-block", ":\n\n.. code-block")
2019-08-06 16:20:06 -07:00
boris
23a0b532db
Revert "remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")"
...
This reverts commit 9fce0bdd88
.
2019-08-06 16:18:06 -07:00
boris
9fce0bdd88
remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")
2019-08-06 15:46:57 -07:00
Bruno Oliveira
28fabc52bd
fix grammar in test_collect_functools_partial docstr ( #5703 )
...
fix grammar in test_collect_functools_partial docstr
2019-08-06 19:24:24 -03:00
boris
5f95dce956
ran blacken-docs
2019-08-06 13:34:58 -07:00
boris
75d0b899bb
ran pyupgrade-docs again
2019-08-06 13:33:21 -07:00
boris
7f90e74e02
label code blocks
2019-08-06 13:25:54 -07:00
boris
cf7761f91f
ran pyupgrade-docs
2019-08-06 12:40:27 -07:00
Thomas Grainger
ef0915e1db
fix grammar in test_collect_functools_partial docstr
2019-08-06 15:27:36 +01:00
Bruno Oliveira
68c486a25f
Add CHANGELOG for 4.6.5 ( #5696 ) ( #5699 )
...
Add CHANGELOG for 4.6.5 (#5696 )
2019-08-05 16:25:24 -03:00
Bruno Oliveira
f5fab2bfa1
Merge master into features ( #5698 )
...
Merge master into features
2019-08-05 15:20:54 -03:00
Bruno Oliveira
f43b54aaeb
Add CHANGELOG for 4.6.5 ( #5696 )
2019-08-05 15:09:31 -03:00
Daniel Hahler
aa06e6c8f3
Merge master into features
2019-08-05 19:12:32 +02:00
Daniel Hahler
bf3aa72a29
Merge pull request #5697 from blueyed/fix-collect-pkg-init
...
Fix RuntimeError when trying to collect package with "__init__.py" only
2019-08-05 18:20:28 +02:00
Daniel Hahler
198fcd8a6f
Fix RuntimeError when trying to collect package with "__init__.py" only
...
Fixes https://github.com/pytest-dev/pytest/issues/4344 .
2019-08-05 17:52:21 +02:00
Bruno Oliveira
f7e925dcc1
Add hostname and timestamp to JUnit XML testsuite tag ( #5692 )
...
Add hostname and timestamp to JUnit XML testsuite tag
2019-08-05 10:19:15 -03:00
Bruno Oliveira
cf6632a57a
Rename 5471.trivial.rst to 5471.feature.rst
2019-08-05 10:19:05 -03:00
Anthony Sottile
1a66a503b6
Merge pull request #5690 from nicoddemus/custom-exit-code-docs
...
Mention pytest-custom_exit_code in the docs
2019-08-04 19:10:36 -07:00
Anthony Sottile
82763a293a
Merge pull request #5684 from nicoddemus/errno-nomore
...
Use OSError subclasses instead of handling errno
2019-08-04 14:50:12 -07:00
Anthony Sottile
73e0bf92f7
Merge pull request #5694 from yashtodi94/public_access_to_exitcode_doc_change
...
Added info to access exitcodes directly
2019-08-04 14:48:23 -07:00
Yash Todi
0d5ed57b40
Added info to access exitcodes directly
2019-08-04 22:35:51 +05:30
Samuel Searles-Bryant
1ce45a6f67
Add hostname and timestamp to JUnit XML testsuite tag
...
Fix #5471
2019-08-03 15:54:39 +01:00
Bruno Oliveira
8db6642515
Mention pytest-custom_exit_code in the docs
...
Related to #5689
2019-08-03 10:15:56 -03:00
Daniel Hahler
29e336bd9b
Merge pull request #5687 from blueyed/merge-master
...
Merge master into features
2019-08-03 14:12:02 +02:00