Commit Graph

10249 Commits

Author SHA1 Message Date
Bruno Oliveira 5d7686951c Run regendoc 2019-05-08 21:50:08 +00:00
Bruno Oliveira 80c5f6e609 Ignore PytestUnknownMark warnings when regen docs
A lot of our examples use custom markers to make a point and showcase
features, which generates a lot of warnings
2019-05-08 21:46:26 +00:00
Bruno Oliveira 0b47e51d08
Release version 4.4.2 (#5230)
Release version 4.4.2
2019-05-08 18:07:05 -03:00
Daniel Hahler 5eeb5ee960
Merge pull request #5013 from blueyed/short-summary-message
Display message from reprcrash in short test summary
2019-05-08 22:01:04 +02:00
Daniel Hahler ed2b715f4c
Merge pull request #5227 from Pulkit07/issue5214
logging: improve default logging format (issue5214)
2019-05-08 21:51:54 +02:00
Pulkit Goyal 7e08e09473 logging: improve default logging format (issue5214)
We improve the following things in the logging format:

  * Show module name instead of just the filename
  * show level of logging as the first thing
  * show lineno attached to module:file details

Thanks to @blueyed who suggested this on the github issue.

It's my first contribution and I have added myself to AUTHORS.

I also added to a changelog file.
2019-05-08 21:37:59 +03:00
Bruno Oliveira 3ac43314ee Preparing release version 4.4.2 2019-05-08 12:46:14 -03:00
Bruno Oliveira 972410f8b6
Require pluggy>=0.11 (#5229)
Require pluggy>=0.11
2019-05-08 12:40:49 -03:00
Romain Chossart 0cf267f187 Add changelog entry for #5229 2019-05-08 16:13:28 +01:00
Sitaktif 7161f5b372 Require pluggy>=0.11
Pluggy 0.10.0 introduced a new dependency `importlib-metadata` but that
package cannot be imported when installed as an egg and that is causing
problems for users relying on `setup.py` to install packages present in
`test_require`. This change was quickly reverted in pluggy 0.11.0.

See https://github.com/pytest-dev/pluggy/issues/205
2019-05-08 16:06:41 +01:00
Bruno Oliveira 2051e30b9b
Show fixture scopes with ``--fixtures``, except for "function" scope (#5221)
Show fixture scopes with ``--fixtures``, except for "function" scope
2019-05-07 19:50:53 -03:00
Bruno Oliveira f339147d12 Add CHANGELOG entry about depending on wcwidth 2019-05-07 19:34:57 -03:00
Bruno Oliveira c04767f946
Use msg.rstrip() as suggested in review 2019-05-07 15:20:00 -03:00
Bruno Oliveira 6d040370ed Show fixture scopes with ``--fixtures``, except for "function" scope
Fix #5220
2019-05-07 14:32:20 -03:00
Bruno Oliveira 1d466d0aa7
Use exec directly (#5224)
Use exec directly
2019-05-07 10:02:12 -03:00
Bruno Oliveira ef4dec0bcf
Skip test_source_mtime_long_long on 32bit and lower platforms (#5045)
Skip test_source_mtime_long_long on 32bit and lower platforms
2019-05-07 09:42:18 -03:00
Bruno Oliveira d76735f9e5
Restore usedevelop=True now that pip 19.1.1 restored the old behavior (#5222)
Restore usedevelop=True now that pip 19.1.1 restored the old behavior
2019-05-07 08:46:47 -03:00
Anthony Sottile d1a48ad68f Use exec directly 2019-05-06 23:07:39 -07:00
Bruno Oliveira 6d259c400e
Merge pull request #5223 from 5uper5hoot/patch-1
Clarify docs for pytest.raises `match`.
2019-05-06 21:57:47 -03:00
Bruno Oliveira d3686361ba Fix linting 2019-05-07 00:52:40 +00:00
Peter Schutt 8605ed2a15
Update python_api.py 2019-05-07 10:10:25 +10:00
Peter Schutt 8b34d981fc
Clarify docs for pytest.raises `match`.
For #5208.

Document explicit behavior of `match` and brief note on how to handle matching a string that may contain special re chars.
2019-05-07 09:56:13 +10:00
Bruno Oliveira 2795689435 Restore usedevelop=True now that pip 19.1.1 restored the old behavior
Fix #5167
2019-05-06 19:42:06 -03:00
Bruno Oliveira dcf65a9643
Add links to pytest.raises `message` workaround (#5218)
Add links to pytest.raises `message` workaround
2019-05-06 18:56:40 -03:00
Bruno Oliveira 784e1e3b7e Add links to pytest.raises `message` workaround
Related to #3974
2019-05-06 12:35:27 -03:00
Bruno Oliveira 4a2fdce62b
Emit a warning for record_property when used with xunit2 (#5204)
Emit a warning for record_property when used with xunit2
2019-05-05 21:33:31 -03:00
Bruno Oliveira 32a5e80a6d Add encoding: header and fix rep mock in test_line_with_reprcrash on py27 2019-05-05 09:33:37 -03:00
Bruno Oliveira 0e8a8f94f6 Add encoding header to test_terminal.py 2019-05-05 09:14:07 -03:00
Bruno Oliveira 8f23e19bcb Emit a warning for record_property when used with xunit2
"property" elements cannot be children of "testsuite" according to the schema, so it is incompatible with xunit2

Related to #5202
2019-05-05 09:01:13 -03:00
Daniel Hahler f5c1f3df71
Merge pull request #5210 from nicoddemus/merge-master-into-features
Merge master into features
2019-05-05 08:02:06 +02:00
Daniel Hahler b25802eca7
Merge pull request #5212 from jdufresne/new-black
Update Black URLs
2019-05-05 07:58:27 +02:00
Daniel Hahler 7f7f84757d
Merge pull request #5211 from hugovk/upgrade-pypy
Upgrade PyPy to 7.1.1
2019-05-05 04:50:11 +02:00
Jon Dufresne 143499d041 Update Black URLs
> Black, your uncompromising #Python code formatter, was a project
> created with the community in mind from Day 1. Today we moved it under
> the PSF umbrella. It's now available on GitHub under
> https://github.com/python/black/ . You install and use it just like
> before.

https://twitter.com/llanga/status/1123980466292445190
2019-05-04 08:28:50 -07:00
Hugo 26b41a5914 Upgrade PyPy to 7.1.1 2019-05-04 17:54:57 +03:00
Bruno Oliveira 9f66102869 Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2019-05-04 10:47:57 -03:00
Bruno Oliveira e1a426c067
Unify pypy (#5209)
Unify pypy
2019-05-04 10:46:14 -03:00
Bruno Oliveira 2bd97ebaf7 Use 'pypy' as executable on PyPy env [skip travis] 2019-05-04 10:27:06 -03:00
Bruno Oliveira 45eeb53c98
Fix a typo (#5207)
Fix a typo
2019-05-04 10:04:50 -03:00
Don Kirkby 254b195f50
Fix a typo 2019-05-03 22:30:20 -07:00
Daniel Hahler 865e84d206
Merge pull request #5109 from blueyed/summary_passes-green
summary_passes: use bold green for report headers
2019-05-04 00:46:23 +02:00
Bruno Oliveira 1c13418a8b
doc: fix hooks 'path' parameter doc type (#5198)
doc: fix hooks 'path' parameter doc type
2019-05-02 21:05:07 -03:00
DamianSkrzypczak 299e6479c1 add DamianSkrzypczak to AUTHORS 2019-05-02 23:45:34 +02:00
DamianSkrzypczak 6e81c3df92 add changelog for issue #5171 fixes 2019-05-02 21:30:03 +02:00
DamianSkrzypczak 1bd7d287a7 doc: fix hooks 'path' parameter doc type
by changing it from str to py.path.local
(#5171)
2019-05-02 20:51:11 +02:00
Anthony Sottile b82e1b87cc
Merge pull request #5195 from nicoddemus/pytest-config-docs
Add quick note about accessing config through session or item objects
2019-05-02 09:52:42 -07:00
Bruno Oliveira af40473c9a Add quick note about accessing config through session or item objects
Fix #5030
2019-05-01 11:46:35 -03:00
Bruno Oliveira f17b734989
Improve help for --runxfail flag (#5188)
Improve help for --runxfail flag
2019-05-01 11:00:31 -03:00
Allan Lewis f050203f5d
Improve help for --runxfail flag
The help for the '--runxfail' flag is somewhat misleading. The default
behaviour is to run tests marked as 'xfail' but to ignore the results. This
flag alters that behaviour by running these tests as if they weren't marked
'xfail', i.e. their results are not ignored.
2019-05-01 10:04:32 +01:00
Bruno Oliveira 3f5622c577
Use config_invocation_dir for startdirs (#5151)
Use config_invocation_dir for startdirs
2019-04-29 18:14:51 -03:00
Bruno Oliveira 1fb3f63f35
debugging: rename internal wrapper for pdb.Pdb (#5186)
debugging: rename internal wrapper for pdb.Pdb
2019-04-29 18:03:32 -03:00