Anthony Sottile
2d398d8706
Preparing release version 4.6.8
2019-12-19 14:42:09 -08:00
Ryan Mast
53b08730e4
Pin the colorama version only for Python 3.4
2019-12-14 10:10:16 -03:00
Bruno Oliveira
fb8395d93f
Create CHANGELOG for #6340
2019-12-13 07:46:12 -03:00
Bruno Oliveira
f9ebe3c607
Bugfix 5430 pass logs to junit report ( #6274 )
...
Bugfix 5430 pass logs to junit report
2019-12-12 16:39:19 -03:00
Bruno Oliveira
8b9482e39c
Add hostname and timestamp to JUnit XML testsuite tag ( #5692 )
...
Add hostname and timestamp to JUnit XML testsuite tag
Conflicts:
testing/test_junitxml.py
2019-12-10 17:27:22 -03:00
Bruno Oliveira
6f43eee106
Preparing release version 4.6.7
2019-12-05 15:29:25 -05:00
Bruno Oliveira
192f6992d2
Include <testsuites> root tag in generated XML ( #5550 )
...
Include <testsuites> root tag in generated XML
2019-11-30 11:30:43 -03:00
Bruno Oliveira
0084fd9783
Review rm_rf handling of FileNotFoundErrors ( #6044 )
...
Review rm_rf handling of FileNotFoundErrors
Conflicts:
src/_pytest/pathlib.py
testing/test_tmpdir.py
2019-10-23 19:36:35 -03:00
Bruno Oliveira
5b499bafb2
Preparing release version 4.6.6
2019-10-11 17:02:08 -04:00
Bruno Oliveira
d526053af3
Add changelog entry for #5902
2019-10-11 16:57:32 -04:00
Bruno Oliveira
b9a8465ce4
Replace importlib_metadata with importlib.metadata on Python 3.8+ ( #5539 )
2019-10-11 17:10:01 +02:00
Michael Goerz
914441557c
Fix "lexer" being used when uploading to bpaste.net
...
Closes #5806 .
2019-09-01 00:38:11 -04:00
Anthony Sottile
aa79b1c00c
[4.6] fixes for python4
2019-08-29 09:52:35 -07:00
Bruno Oliveira
7807c263bc
Preparing release version 4.6.5
2019-08-05 13:37:25 -03:00
Daniel Hahler
b71f873189
[4.6] Fix RuntimeError when trying to collect package with "__init__.py" only
...
Fixes https://github.com/pytest-dev/pytest/issues/4344 .
2019-08-05 18:22:23 +02:00
Bruno Oliveira
400393cfe4
Improve output when parsing an ini configuration fails ( #5650 )
...
Improve output when parsing an ini configuration fails
2019-07-23 11:18:16 -03:00
Bruno Oliveira
02c737fe4e
Fix rmtree to remove directories with read-only files ( #5588 )
...
Fix rmtree to remove directories with read-only files
2019-07-11 19:07:36 -03:00
Bruno Oliveira
df0cff18ac
Handle xfail(strict=True) properly in --step-wise mode ( #5555 )
...
Handle xfail(strict=True) properly in --step-wise mode
2019-07-04 20:51:59 -03:00
Bruno Oliveira
46a0888352
Fix pytest.raises handling of unicode exceptions in Python 2 ( #5479 )
...
Fix pytest.raises handling of unicode exceptions in Python 2
2019-07-04 10:25:56 -03:00
Anthony Sottile
d3549df5b9
Preparing release version 4.6.4
2019-06-28 18:23:53 -07:00
Anthony Sottile
f4b1c1184f
Merge pull request #5506 from asottile/fix_no_terminal
...
Fix crash when discovery fails while using `-p no:terminal`
2019-06-27 11:00:05 -07:00
Thomas Grainger
86a4eb6008
Update changelog/5478.bugfix.rst
...
Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
2019-06-27 07:35:02 +01:00
Thomas Grainger
013d0e66c7
use safe_str to serialize Exceptions Fixes #5478
2019-06-26 11:11:54 +01:00
Bruno Oliveira
d5eed3bb9c
Pickup addition positional args passed to _parse_parametrize_ar… ( #5483 )
...
Pickup addition positional args passed to _parse_parametrize_args
2019-06-24 22:07:53 -03:00
Bruno Oliveira
4b104ba222
Merge pull request #5454 from nicoddemus/backport-5446
...
Backport 5446
2019-06-17 09:46:01 -03:00
Daniel Hahler
443af11861
Merge pull request #5404 from Zac-HD/helpful-mock-unwrapper
...
Emit warning for broken object
2019-06-17 14:48:40 +10:00
Bruno Oliveira
e2fa2b621c
Fix --sw crash when first file in cmdline fails to collect
...
Fix #5444
2019-06-16 10:46:07 -03:00
Anthony Sottile
b8e65d03bf
Preparing release version 4.6.3
2019-06-11 08:48:11 -07:00
Bruno Oliveira
a93c50ccb9
Fix verbosity bug in --collect-only ( #5391 )
...
Fix verbosity bug in --collect-only
2019-06-05 20:50:21 -03:00
Anthony Sottile
21680ffa77
Merge pull request #5401 from nicoddemus/backport-5389
...
[4.6] Backport #5389
2019-06-04 19:35:42 -07:00
Dirk Thomas
0ae27714d1
Backport of #5389 : fix for 'files' = None in broken metadata
2019-06-04 22:21:25 -03:00
Anthony Sottile
92432ac45c
Merge pull request #5393 from nicoddemus/unittest-self-5390
...
item.obj is again a bound method on TestCase function items
2019-06-04 17:49:53 -07:00
Anthony Sottile
70f0b77c72
Preparing release version 4.6.2
2019-06-03 10:43:09 -07:00
Anthony Sottile
12bf458719
Merge pull request #5373 from asottile/revert_all_handling
...
Revert unrolling of `all()`
2019-06-03 09:20:48 -07:00
Anthony Sottile
abb853f482
Preparing release version 4.6.1
2019-06-02 10:09:51 -07:00
Bruno Oliveira
f078984c2e
Fix all() unroll for non-generators/non-list comprehensions ( #5360 )
...
Fix all() unroll for non-generators/non-list comprehensions
2019-06-02 09:12:39 -07:00
Anthony Sottile
f7bf914108
Fix `pytest.mark.parametrize` when the argvalue is an iterator
2019-06-01 15:10:33 -07:00
Anthony Sottile
e7cd00ac92
Preparing release version 4.6.0
2019-05-31 23:12:57 -07:00
Anthony Sottile
fb3ae5eaa9
Merge remote-tracking branch 'origin/master' into mm
2019-05-30 20:23:38 -07:00
Bruno Oliveira
c8d23c206b
logging: Improve formatting of multiline message ( #5312 )
...
logging: Improve formatting of multiline message
2019-05-30 21:42:41 -03:00
Victor Maryama
65bd1b8a93
Avoiding looking upwards for parameter argnames when generating fixtureinfo.
2019-05-30 23:42:04 +02:00
Daniel Hahler
f013a5e8c1
pytester: use temporary HOME with spawn
...
Followup to https://github.com/pytest-dev/pytest/issues/4956 .
2019-05-30 17:39:44 +02:00
Bruno Oliveira
5cbc06a453
Show test module in the PytestCollectionWarning message
...
Related to #5330
2019-05-30 08:18:28 -03:00
Daniel Hahler
6765aca0d1
Merge master into features
2019-05-30 06:33:04 +02:00
Bruno Oliveira
b10f28949d
Add the junit_log_passing_tests ini flag to skip logging output for passing tests. ( #5052 )
...
Add the junit_log_passing_tests ini flag to skip logging output for passing tests.
2019-05-29 20:56:13 -03:00
Daniel Hahler
ceb4f3f701
fixup! Fix regression with --lf and non-selected failures
2019-05-29 23:24:52 +02:00
Thomas Hisch
ea3ebec117
logging: Improve formatting of multiline message
2019-05-29 23:21:14 +02:00
Thomas Hisch
84569ca4da
Merge pull request #5311 from thisch/coloredcaplog
...
Use same code for setting up cli/non-cli formatter
2019-05-29 22:18:43 +02:00
Thomas Hisch
31b1c4ca0c
Update changelog/5311.feature.rst
...
Co-Authored-By: Daniel Hahler <github@thequod.de>
2019-05-29 22:00:34 +02:00
Thomas Hisch
d4b85da8c7
Use same code for setting up cli/non-cli formatter
...
A method _create_formatter was introduced that is used for both the
log_cli_formatter and the log_formatter.
Consequences of this commit are:
* Captured logs that are output for each failing test are formatted
using the ColoredLevelFromatter.
* The formatter used for writing to a file still uses the non-colored
logging.Formatter class.
2019-05-28 21:30:34 +02:00