Daniel Hahler
a5b3ad2e45
Merge pull request #4284 from blueyed/test-dunder-class
...
python: collect: ignore exceptions with isinstance
2018-11-01 22:15:29 +01:00
Daniel Hahler
e30f7094f3
python: collect: ignore exceptions with isinstance
...
Fixes https://github.com/pytest-dev/pytest/issues/4266 .
2018-11-01 22:14:13 +01:00
Mick Koch
5197354375
Add changelog entry
2018-11-01 13:13:33 -04:00
Mick Koch
5ac4eff09b
Fix __init__.py as argument also including other package files
2018-11-01 13:10:52 -04:00
Mick Koch
320e41b142
Add failing test for __init__.py also including other package files
2018-11-01 13:10:52 -04:00
Mick Koch
70976b04be
Add test for __init__.py collection with package directory as argument
2018-11-01 13:10:17 -04:00
Daniel Hahler
d65f300988
Move handling of duplicate files
...
This removes the hack added in https://github.com/pytest-dev/pytest/pull/3802 .
Adjusts test:
- it appears to not have been changed to 7 intentionally.
- removes XXX comment, likely not relevant anymore since 6dac7743
.
2018-11-01 13:06:36 -04:00
Anthony Sottile
948fd7b8b0
fixup pyupgrade crlf incorrect fixes
2018-11-01 08:40:35 -07:00
Bruno Oliveira
f2cebce2eb
Merge pull request #4272 from blueyed/cache-non-default
...
cacheprovider: display cachedir also in non-verbose mode if customized
2018-11-01 12:19:21 -03:00
Daniel Hahler
a192e6b430
Merge pull request #4247 from blueyed/lru
...
_getconftestmodules: use functools.lru_cache
2018-11-01 15:55:38 +01:00
Daniel Hahler
f8a2452247
changelog [ci skip]
2018-11-01 15:53:31 +01:00
Bruno Oliveira
56e6bb0ff6
Merge pull request #4282 from avallbona/patch-1
...
Update talks.rst
2018-10-31 22:33:45 -03:00
Bruno Oliveira
017e504a11
Merge pull request #4277 from blueyed/pdb-set_trace-capture-msg
...
pdb: improve msg about output capturing with set_trace
2018-10-31 21:48:47 -03:00
Andreu Vallbona Plazas
9871d5ec2d
Updated the talks.rst
...
corrected the target name
2018-11-01 01:24:18 +01:00
Bruno Oliveira
642521a9b3
Merge pull request #4281 from asottile/bump_hooks
...
Upgrade pyupgrade for crlf fixes (again)
2018-10-31 20:58:05 -03:00
Bruno Oliveira
0994829afe
Move pytest talk to the start of the section
2018-10-31 19:35:47 -03:00
Daniel Hahler
ce1cc3dddb
_getconftestmodules: use functools.lru_cache
...
Also renames `_path2confmods` to `_dirpath2confmods` for clarity (it is
expected to be a dirpath in `_importconftest`).
Uses an explicit maxsize, since it appears to be only relevant for a
short period [1].
Removes the lru_cache on _getconftest_pathlist, which makes no
difference when caching _getconftestmodules, at least with the
performance test of 100x10 files (#4237 ).
1: https://github.com/pytest-dev/pytest/pull/4237#discussion_r228528007
2018-10-31 23:17:05 +01:00
Daniel Hahler
65817dd797
changelog [ci skip]
2018-10-31 23:13:25 +01:00
Andreu Vallbona Plazas
c31abb1176
Update talks.rst
...
Added the slides of a PyconES 2017 talk about pytest and its plugins ecosystem.
2018-10-31 23:06:44 +01:00
Bruno Oliveira
d4ca634ef6
Fix linting
2018-10-31 18:21:55 -03:00
Anthony Sottile
af00367fed
Upgrade pyupgrade for crlf fixes (again)
2018-10-31 13:26:49 -07:00
William Jamir Silva
9b94313b44
Update changelog
2018-10-31 17:12:50 -03:00
William Jamir Silva
5404246e64
Improve the warning message for the implicitly str conversion
...
Signed-off-by: William Jamir Silva <williamjamir@gmail.com>
2018-10-31 16:19:10 -03:00
Daniel Hahler
e0038b82f7
pdb: improve msg about output capturing with set_trace
...
Do not display "IO-capturing turned off/on" when ``-s`` is used to avoid
confusion.
2018-10-31 17:09:01 +01:00
Bruno Oliveira
0fea71a4f5
Merge pull request #4164 from RonnyPfannschmidt/nowarn-session-attributes
...
don`t parse compat properties as fixtures
2018-10-31 12:52:52 -03:00
Bruno Oliveira
7571f079c8
Merge pull request #4276 from pfctdayelise/flaky-docs
...
Add docs page discussing flaky tests
2018-10-31 11:25:27 -03:00
Bruno Oliveira
b5d62cdb55
Update 2701.bugfix.rst
2018-10-31 11:07:24 -03:00
Bruno Oliveira
cc25256982
Fix linting2
2018-10-31 11:05:58 -03:00
Ronny Pfannschmidt
da04ff52e4
ignore _CompatProperty when parsing fixtures
...
this avoid triggering the warnings when parsing the session node as session plugin
2018-10-31 15:01:41 +01:00
Bruno Oliveira
d5b5be6fbe
Fix linting
2018-10-31 10:44:43 -03:00
Brianna Laugher
3b65d190a4
Add docs page discussing flaky tests
2018-10-31 23:45:09 +11:00
Daniel Hahler
ff04a1fb09
Merge pull request #4267 from nicoddemus/tmpdir-4262
...
Fix access denied error when deleting a stale temporary directory
2018-10-31 00:25:13 +01:00
Daniel Hahler
1f1d4aaf68
cacheprovider: display cachedir also in non-verbose mode if customized
2018-10-30 23:09:54 +01:00
Anthony Sottile
196a739f58
Merge pull request #4269 from asottile/upgrade_hooks
...
Upgrade pre-commit hooks
2018-10-30 14:06:19 -07:00
Bruno Oliveira
f20eeebde9
Fix access denied error when deleting a stale temporary directory
...
Fix #4262
2018-10-30 15:35:53 -03:00
Anthony Sottile
b17e6cea21
Upgrade pre-commit hooks
2018-10-30 11:02:44 -07:00
Bruno Oliveira
233c2a23de
Merge pull request #4250 from blueyed/ignore-pyc
...
collection: _recurse: skip __pycache__
2018-10-30 08:25:57 -03:00
Bruno Oliveira
46ec0ec43a
Merge pull request #4264 from scop/spelling2
...
Spelling and grammar fixes
2018-10-30 08:24:01 -03:00
Ville Skyttä
a035c89ea7
Spelling fix
2018-10-30 09:38:55 +02:00
Daniel Hahler
40228fce5a
collection: _recurse: skip __pycache__
2018-10-30 02:34:32 +01:00
Anthony Sottile
f258b75a24
Merge pull request #4261 from asottile/no_anonymous_source_warning
...
Swallow warnings during anonymous compilation of source
2018-10-29 18:29:53 -07:00
Ville Skyttä
22ab737243
Spelling and grammar fixes
2018-10-29 23:45:45 +02:00
Anthony Sottile
0d1f142b1c
Swallow warnings during anonymous compilation of source
2018-10-29 08:38:10 -07:00
Anthony Sottile
8c475a45bb
Unrelated cleanups of source.py
2018-10-28 16:43:17 -07:00
Bruno Oliveira
e6e40db9c7
Merge pull request #4258 from pecey/tmp/issue-4255
...
Fixes #4255 by adding to the doc that module names are not regex-escaped
2018-10-28 09:44:13 -03:00
Ronny Pfannschmidt
cc531a1ca9
Merge pull request #4253 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-10-28 10:13:08 +01:00
Palash Chatterjee
c3acf049bd
Fixes #4255 by adding to the documentation that module names are not regex-escaped
2018-10-28 10:45:34 +05:30
Bruno Oliveira
bab1ef5d38
Merge pull request #4257 from Bernardoow/changed_address_to_pytest-datadir
...
changed address to pytest-data-dir
2018-10-27 17:16:32 -03:00
Bernardo Gomes
b0c0911ba3
changed address to pytest-data-dir
2018-10-27 14:31:50 -03:00
Bruno Oliveira
3b7fbcd47f
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-27 14:29:01 -03:00