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
Daniel Hahler
e032904413
Merge master into features
2019-05-28 01:46:16 +02:00
Bruno Oliveira
2b9ca34280
Unroll calls to any #5062 ( #5103 )
...
Unroll calls to any #5062
2019-05-27 20:17:44 -03:00
Anthony Sottile
13f02af97d
Switch to importlib-metadata
2019-05-27 13:24:08 -07:00
Daniel Hahler
f2ed796c41
pdb: import pdbcls lazily
...
Fixes https://github.com/pytest-dev/pytest/issues/2064 .
2019-05-26 15:56:38 +02:00
Tomer Keren
ddbe733666
Add changelog entry for 5062
2019-05-25 19:34:08 +03:00
Bruno Oliveira
b4d75ad31d
Merge pull request #5091 from blueyed/showhelp-ini-options
...
Improve output of ini options in --help
2019-05-23 21:10:43 -03:00
Daniel Hahler
fa8a658458
Merge pull request #4908 from blueyed/pdb-pm-enter-hook
...
pdb: trigger pytest_enter_pdb hook with post-mortem
2019-05-24 01:50:24 +02:00
David Röthlisberger
84c7fef836
changelog: Fix typo
2019-05-23 16:48:39 +01:00
Daniel Hahler
6c56070df1
Merge pull request #5278 from blueyed/disable-python-plugin
...
Allow disabling of python plugin
2019-05-23 15:52:19 +02:00
Daniel Hahler
b2ce6f3200
Improve output of ini options in --help
...
Do not cut long help texts, but wrap them the same way as argparse wraps
the other help items.
2019-05-23 09:33:07 +02:00
Daniel Hahler
a0ff5deabf
pdb: trigger pytest_enter_pdb hook with post-mortem
...
This is required for pytest-pdb to be called with `--pdb`.
TODO:
- [ ] test
- [ ] pass mode to hook, e.g. "post_mortem" in this case?
2019-05-23 09:09:53 +02:00
Daniel Hahler
97b85a17ae
changelog [ci skip]
2019-05-23 08:38:54 +02:00
Akiomi Kamakura
a304dbb519
Fix `disable_test_id_escaping_and_forfeit_all_rights_to_community_support` option when using a list of test IDs
2019-05-21 09:48:22 +09:00