Ronny Pfannschmidt
f6eb39df33
Merge pull request #4001 from asottile/fix_bytes_repr_text_mix_python_2
...
Fix UnicodeDecodeError in assertion with mixed non-ascii bytes repr + text
2018-09-20 22:16:37 +02:00
Bruno Oliveira
7a5e11bbcf
Merge pull request #3997 from nicoddemus/deprecation-docs
...
Introduce deprecations page
2018-09-20 08:22:51 -03:00
Anthony Sottile
7122fa5613
Fix UnicodeDecodeError in assertion with mixed non-ascii bytes repr + text
2018-09-19 20:24:00 -07:00
Bruno Oliveira
7aff81739e
Merge pull request #3998 from blueyed/logging-del
...
logging: del item.catch_log_handler only in teardown
2018-09-19 20:07:19 -03:00
Bruno Oliveira
27772f67c0
Merge pull request #3987 from nicoddemus/fix-find-scope-3941
...
Fix scope determination with indirect parameters
2018-09-19 20:06:45 -03:00
Bruno Oliveira
10b3b2dc68
Merge pull request #3990 from blueyed/coverage-source
...
coverage: use modules
2018-09-19 19:55:11 -03:00
Bruno Oliveira
c2841542af
Introduce deprecations page
...
fix #3996
2018-09-19 19:51:29 -03:00
wim glenn
1f28096587
Merge pull request #4003 from pytest-dev/wimglenn-patch-1
...
seems this subdir is now .pytest_cache not .cache
2018-09-19 14:49:38 -05:00
wim glenn
e86b01e831
Update customize.rst
2018-09-19 14:06:36 -05:00
Bruno Oliveira
d1fa8ae08e
Improve CHANGELOG entry
2018-09-19 12:52:10 -03:00
Ronny Pfannschmidt
29dac03314
Merge pull request #3980 from nicoddemus/rewrite-cwd-changed
...
Fix assertion rewriter crash if cwd changes mid-testing
2018-09-19 17:45:26 +02:00
Daniel Hahler
e7eb7e799b
logging: del item.catch_log_handler only in teardown
...
Without this caplog.record_tuples etc is not available anymore when using
`--pdb`.
2018-09-19 17:17:47 +02:00
Bruno Oliveira
7f48f552c1
Fix linting
2018-09-19 10:18:05 -03:00
Bruno Oliveira
1e2e65f0fa
Add references to the relevant Python issues
2018-09-19 08:20:23 -03:00
Daniel Hahler
28c9cc7321
coverage: use modules for source
...
This should increase coverage for subprocesses, where previously
`source` paths were used only from the config file, but not the initial
`--source` argument.
2018-09-19 07:46:19 +02:00
Bruno Oliveira
ccb90b5c46
[WIP] Introduce deprecations page
...
fix #3996
2018-09-18 20:56:40 -03:00
Bruno Oliveira
37d2469266
Use a PurePath instance to do matching against patterns in assertion rewrite
...
This way we don't need to have real file system path, which prevents the
original #3973 bug.
2018-09-17 20:29:09 -03:00
Bruno Oliveira
1df6d28080
Fix assertion rewriter crash if cwd changes mid-testing
...
Unfortunately we need to get a `py.path.local` object to perform the fnmatch
operation, it is different from the standard `fnmatch` module because it
implements its own custom logic. So we need to use `py.path` to perform
the fnmatch for backward compatibility reasons.
Ideally we should be able to use a "pure path" in `pathlib` terms (a path
not bound to the file system), but we don't have those in pylib.
Fix #3973
2018-09-17 20:04:44 -03:00
Daniel Hahler
03eaad376b
tox: coverage factor: combine and report
2018-09-17 14:44:47 +02:00
Daniel Hahler
739f9a4a4b
Travis: use codecov-bash
...
Faster to install and will retry uploads on connection errors.
2018-09-17 14:44:47 +02:00
Daniel Hahler
93224f8cf9
tox: remove obsolete whitelist_externals
2018-09-17 14:44:47 +02:00
Ronny Pfannschmidt
bb57186dd4
Merge pull request #3983 from nicoddemus/update-backward-policy
...
Review backward compatibility policy
2018-09-16 20:43:55 +02:00
Bruno Oliveira
2803eb9fbb
Merge pull request #3984 from nicoddemus/fix-docs-formatting
...
Fix rendering of the ini example for python_files
2018-09-15 12:05:59 -03:00
Ronny Pfannschmidt
f53eff93db
Merge pull request #3982 from nicoddemus/ignore-pytest-cache
...
Ignore pytest cache
2018-09-15 07:21:45 +02:00
Bruno Oliveira
86a14d007d
Fix scope determination with indirect parameters
...
Fix #3941
2018-09-14 21:33:59 -03:00
Bruno Oliveira
a4dd6ee3ce
Fix linting
2018-09-14 17:31:01 -03:00
Bruno Oliveira
130cf7e0db
Fix rendering of the ini example for python_files
...
Also added an example using one pattern per line
2018-09-14 17:27:25 -03:00
Bruno Oliveira
cbb41f1ae2
Ignore Sphinx's .doctrees folder
2018-09-14 16:00:35 -03:00
Bruno Oliveira
fa78da3c03
Update backward compatibility policy with new practices
2018-09-14 15:58:22 -03:00
Bruno Oliveira
87ddb2dbd5
Change flaky test_request_garbage to provide more debug information
...
This test fails *very* rarely when running in xdist.
2018-09-14 15:25:45 -03:00
Bruno Oliveira
9aa6b0903b
.pytest_cache is now automatically ignored by Git
2018-09-14 15:16:40 -03:00
Bruno Oliveira
49800ea134
Merge pull request #3977 from RonnyPfannschmidt/remove-im-func
...
Remove im_func
2018-09-13 15:46:33 -03:00
Ronny Pfannschmidt
8fe55b1d18
add changelog for fix #3975
2018-09-13 15:40:45 +02:00
Ronny Pfannschmidt
a0ce9a4441
remove the legacy code about im_func and generalize using fix and compat.getimfunc
2018-09-13 15:38:36 +02:00
Daniel Hahler
2cf2dc3d95
Merge pull request #3967 from blueyed/optional-mock
...
tests: use unittest.mock with py34+
2018-09-13 07:36:42 +02:00
Daniel Hahler
7537e94ddf
tests: use unittest.mock with py34+
...
Fixes https://github.com/pytest-dev/pytest/issues/3965 .
Has to work around https://github.com/tox-dev/tox/issues/706 .
No coverage for pluggymaster builds is OK though anyway.
2018-09-12 23:21:47 +02:00
Anthony Sottile
2c90b3db9e
Merge pull request #3957 from asottile/changelog_files
...
Improve pre-commit detection for changelog filenames
2018-09-08 10:58:50 -07:00
Anthony Sottile
826adafe2e
Improve pre-commit detection for changelog filenames
2018-09-07 09:36:09 -07:00
Anthony Sottile
3dd2933dbd
Merge pull request #3948 from nicoddemus/fix-changelog
...
Amend CHANGELOG with missing #3251
2018-09-07 09:15:09 -07:00
Bruno Oliveira
b55351274e
Amend CHANGELOG with missing #3251
2018-09-06 18:56:08 -03:00
Bruno Oliveira
c00d934b21
Merge pull request #3933 from nicoddemus/idval-hypothesis-flaky-3707
...
Use -n auto now that xdist behaves well in Travis and AppVeyor
2018-09-06 15:15:55 -03:00
Bruno Oliveira
6b526cbe6a
Merge pull request #3943 from nicoddemus/no-coverage-on-deploy
...
Disable coverage during deployment stage
2018-09-06 15:15:32 -03:00
Bruno Oliveira
e0539e6ede
Merge pull request #3942 from nicoddemus/merge-features-into-master
...
Merge features into master
2018-09-06 09:35:28 -03:00
Bruno Oliveira
5eb85efa14
Use -n auto now that xdist behaves well in Travis and AppVeyor
...
This hopefully fixes the flaky test_idval_hypothesis on AppVeyor
Fix #3707
2018-09-06 09:22:13 -03:00
Bruno Oliveira
9ee8d72fd2
Disable coverage during deployment stage
...
Otherwise it will fail as there's no coverage data to combine/publish
2018-09-06 09:18:47 -03:00
Bruno Oliveira
8c4ca383ca
Merge remote-tracking branch 'upstream/features' into merge-features-into-master
2018-09-06 09:15:56 -03:00
Bruno Oliveira
f2a427da25
Merge pull request #3940 from nicoddemus/release-3.8.0
...
Release 3.8.0
2018-09-06 09:15:00 -03:00
Bruno Oliveira
e0466d0ad8
Merge pull request #3923 from nicoddemus/codecov
...
Add support for codecov in AppVeyor
2018-09-06 07:02:56 -03:00
Bruno Oliveira
418a66a09f
Replace coveralls' badge by codecov's
2018-09-05 22:37:32 -03:00
Bruno Oliveira
5e2bd17d18
White list external "env" used by Travis for coverage
2018-09-05 22:37:32 -03:00