Jiri Kuncar
ab5af524a4
Fix macOS specific code that uses capturemanager.
...
https://github.com/pytest-dev/pytest/issues/3888#issuecomment-416206606
closes #3888
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2018-08-27 16:07:59 +02:00
Bruno Oliveira
47bb53f5cb
Cache now obeys -q when showing summary for --lf and --ff
...
Related to #3853
2018-08-26 18:08:19 -03:00
Bruno Oliveira
6991a16edb
Fix bad console output when using console_output_style=classic
...
Fix #3883
2018-08-26 17:12:55 -03:00
Bruno Oliveira
2f2d5861bb
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-08-26 16:45:00 -03:00
Bruno Oliveira
c31018d9bc
Preparing release version 3.7.3
2018-08-26 12:43:43 +00:00
Jeffrey Rackauckas
dda5e5ea32
Fixing backticks in changelog file.
2018-08-25 21:55:00 -07:00
Jeffrey Rackauckas
5e260c4d34
Fixing changelog file.
2018-08-25 21:50:19 -07:00
Bruno Oliveira
de6f2c0336
Collect tests from __init__.py files if they match 'python_files'
...
Fix #3773
2018-08-25 11:18:52 -03:00
Bruno Oliveira
be4b359c74
Merge pull request #3861 from jonozzz/fix-3854
...
Fix #3854
2018-08-25 10:44:08 -03:00
turturica
8cf0e46bbf
test_package_ordering: Collect *.py, but keep a mix of case for filenames. The test doesn't make sense for Windows, because of its case-insensitivity.
2018-08-24 16:23:50 -07:00
turturica
dce8df45d5
Added changelog items.
2018-08-24 15:51:42 -07:00
Andrew Champion
f6948597e4
add to changelog
2018-08-24 12:29:18 -07:00
Jeffrey Rackauckas
93f783228c
Add the progress_display_mode ini option
2018-08-23 22:56:25 -07:00
wim glenn
d54aa8ce13
Merge pull request #3848 from wimglenn/pytester_unicode_bugfixes
...
fixed a bunch of unicode bugs in pytester.py
2018-08-23 13:45:49 -05:00
Bruno Oliveira
8804c7333a
Fix CHANGELOG formatting
2018-08-22 20:06:13 -03:00
Jennifer Rinker
a12eadd9ef
resolving Issue #3824 - expanding docs
2018-08-22 15:37:35 +02:00
Bruno Oliveira
2137e2b15b
Merge pull request #3846 from nicoddemus/issue-3843
...
Fix collection error when tests is specified with --doctest-modules
2018-08-22 08:17:07 -03:00
wim glenn
89446af51e
fixed a bunch of unicode bugs in pytester.py
2018-08-22 01:30:23 -05:00
Ronny Pfannschmidt
3b521bedf8
Merge pull request #3841 from sankt-petersbug/fix-3816
...
Fix '--show-capture=no' capture teardown logs
2018-08-22 07:16:53 +02:00
Bruno Oliveira
eb8d145195
Add link to issue in the CHANGELOG entry
2018-08-21 21:08:21 -03:00
Natan Lao
80bea79512
Add changelog entry
2018-08-21 17:04:56 -07:00
Bruno Oliveira
07a560ff24
Fix collection error when tests is specified with --doctest-modules
...
The problem was that _matchnodes would receive two items: [DoctestModule, Module]. It would then collect the first one, *cache it*, and fail to match against the name in the command line. Next, it would reuse the cached item (DoctestModule) instead of collecting the Module which would eventually find the "test" name on it.
Added the type of the node to the cache key to avoid this problem, although I'm not a big fan of caches that have different key types.
Fix #3843
2018-08-21 21:02:46 -03:00
Bruno Oliveira
672f4bb5aa
Improve CHANGELOG
2018-08-21 20:19:48 -03:00
Bruno Oliveira
044d2b8e6e
Merge pull request #3838 from wimglenn/runresult_xfail
...
Support xfailed and xpassed outcomes in RunResult.
2018-08-20 20:01:51 -03:00
Sankt Petersbug
223eef6261
Fix '--show-capture=no' capture teardown logs
...
Add a check before printing teardown logs.
'print_teardown_sections' method does not check '--show-capture' option
value, and teardown logs are always printed.
Resolves : #3816
2018-08-20 15:01:21 -05:00
Bruno Oliveira
43657f252f
Merge pull request #3830 from nicoddemus/capfd-fixture-capture
...
Fixtures during teardown can use capsys and capfd to get output from tests
2018-08-20 15:32:45 -03:00
wim glenn
539a22c750
Added support for xfailed and xpassed outcomes to the ``pytester.RunResult.assert_outcomes`` signature.
2018-08-20 01:24:19 -05:00
wim glenn
e4bea9068b
end of line for this file, perhaps?
2018-08-19 23:39:10 -05:00
wim glenn
e620798d33
more autodocs for pytester
2018-08-19 23:21:45 -05:00
Bruno Oliveira
c64a8c9c7f
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-08-18 15:54:53 -03:00
Bruno Oliveira
f4c5994d27
Fixtures during teardown can use capsys and capfd to get output from tests
...
Fix #3033
2018-08-18 14:46:24 -03:00
Bruno Oliveira
28aff051ab
Merge pull request #3822 from Sup3rGeo/bugfix/capsys-with-cli-logging
...
Bugfix/capsys with cli logging
2018-08-18 14:06:27 -03:00
Bruno Oliveira
29975e5b37
Merge pull request #3827 from Vlad-Shcherbina/funcfixtureinfo-type-hints
...
Replace broken type annotations with type comments
2018-08-18 12:54:47 -03:00
Vlad Shcherbina
c3e494f6cf
Replace broken type annotations with type comments
...
Fixes #3826 .
2018-08-18 01:05:30 +03:00
Victor
f66764e1c0
Added changelog and updated AUTHORS.
2018-08-17 00:33:56 +02:00
Bruno Oliveira
e5a3c870b4
Preparing release version 3.7.2
2018-08-16 22:29:00 +00:00
Anthony Sottile
17644ff285
Fix traceback reporting for exceptions with `__cause__` cycles.
2018-08-15 18:15:07 -07:00
Bruno Oliveira
64faa41d06
Merge pull request #3802 from jonozzz/fix-3768
...
Fix test collection from packages mixed with directories. #3768 and #3789
2018-08-15 21:42:25 -03:00
Sankt Petersbug
c1c08852f9
lint checks
2018-08-14 19:54:51 -05:00
Sankt Petersbug
e06a077ac2
added changelog
2018-08-14 16:16:37 -05:00
Ronny Pfannschmidt
68bbd42213
Merge pull request #3795 from nicoddemus/changelog-3774
...
Add CHANGELOG for issue #3774 , missing from PR #3780
2018-08-14 09:32:20 +02:00
Josh Holland
abbd7c30a4
Unhide documentation for metafunc.config
...
Fixes #3746 .
2018-08-11 20:48:55 +01:00
Bruno Oliveira
abae60c8d0
Add CHANGELOG entries
2018-08-10 22:04:42 -03:00
Bruno Oliveira
220288ac77
Add CHANGELOG for issue #3774 , missing from PR #3780
2018-08-09 12:33:02 -03:00
Bruno Oliveira
74d9f56d0f
Improve CHANGELOG a bit
2018-08-08 21:24:14 -03:00
Wes Thomas
aa358433b0
Fix AttributeError bug in TestCaseFunction.teardown by creating TestCaseFunction._testcase as attribute of class with a None default.
2018-08-08 18:13:21 -05:00
Virgil Dupras
126896f69d
Add option to disable plugin auto-loading
...
If `PYTEST_DISABLE_PLUGIN_AUTOLOAD` is set, disable auto-loading of
plugins through setuptools entrypoints. Only plugins that have been
explicitly specified are loaded.
ref #3784 .
2018-08-07 13:16:28 -04:00
Bruno Oliveira
e723069165
Merge pull request #3771 from nicoddemus/package-infinite-recursion-bug
...
Fix infinite recursion collection bug with pytest_ignore_collect hook
2018-08-06 10:09:31 -03:00
Bruno Oliveira
2c0d2eef40
Only consider actual functions when considering hooks
...
Fix #3775
2018-08-04 16:37:07 -03:00
Bruno Oliveira
fe0a76e1a6
Fix recursion bug if a pytest_ignore_collect returns False instead of None
2018-08-03 15:40:33 -03:00
Bruno Oliveira
f7a3f45a18
Preparing release version 3.7.1
2018-08-02 12:04:39 +00:00
Anthony Sottile
4705fd2bbe
Merge pull request #3765 from asottile/require_changelog_rst
...
Enforce that changelog files are .rst
2018-08-01 23:47:09 -07:00
Ronny Pfannschmidt
7e92930fa9
Merge pull request #3764 from asottile/fix_3763
...
Fix `TypeError` when the assertion message is `bytes` in python 3.
2018-08-02 07:19:51 +02:00
Ronny Pfannschmidt
33769d0328
Merge pull request #3754 from nicoddemus/fix-function-call-warning
...
Refactor direct fixture call warning to avoid incompatibility with plugins
2018-08-02 07:17:15 +02:00
Bruno Oliveira
5db2e6c7a1
Merge pull request #3761 from nicoddemus/numpy-recursion-error
...
Fix recursion in pytest.approx() with arrays in numpy<1.13
2018-08-01 23:40:30 -03:00
Bruno Oliveira
804fc4063a
Merge pull request #3741 from kalekundert/approx_misc_tweaks
...
Miscellaneous improvements to approx()
2018-08-01 23:40:21 -03:00
Bruno Oliveira
82a2174867
Fix typo in CHANGELOG
2018-08-01 20:11:16 -03:00
Anthony Sottile
a80e031c62
Enforce that changelog files are .rst
2018-08-01 15:22:43 -07:00
Anthony Sottile
452e5c1cf0
Fix `TypeError` when the assertion message is `bytes` in python 3.
2018-08-01 15:09:25 -07:00
Bruno Oliveira
c6b11b9f62
Refactor direct fixture call warning to avoid incompatibility with plugins
...
This refactors the code so we have the real function object right during
collection. This avoids having to unwrap it later and lose attached information
such as "async" functions.
Fix #3747
2018-08-01 16:38:43 -03:00
Bruno Oliveira
f25683354e
Merge pull request #3760 from RonnyPfannschmidt/fix-3757-pin-pathlib
...
fix #3757 by pinning to pathlib2 that supports __fspath__
2018-08-01 09:44:30 -03:00
Bruno Oliveira
7d13599ba1
Fix recursion in pytest.approx() with arrays in numpy<1.13
2018-08-01 08:04:09 -03:00
Ronny Pfannschmidt
57a8f208bc
fix #3757 by pinning to pathlib2 that supports __fspath__
2018-08-01 11:45:39 +02:00
Ronny Pfannschmidt
fcdc1d867e
fix #3745 - display absolute cache_dir if necessary
2018-08-01 08:25:37 +02:00
Bruno Oliveira
8e2ed76227
Create appropriate CHANGELOG entries
2018-07-31 21:11:26 -03:00
Bruno Oliveira
60b1913ba2
Preparing release version 3.7.0
2018-07-30 20:14:42 +00:00
Bruno Oliveira
eada0b1fd7
Merge remote-tracking branch 'upstream/master' into release-3.7.0
2018-07-30 20:12:30 +00:00
Bruno Oliveira
150535b6c1
Merge pull request #3696 from abrammer/approx_numpy_tolerance_bugfix
...
bugfix in ApproxNumpy initialisation, use keywords for arguments to fix
2018-07-30 17:09:18 -03:00
Bruno Oliveira
953a618102
Update CHANGELOG entry about pytest_namespace deprecation
2018-07-30 12:18:37 -03:00
abrammer
762eaf443a
update changelog to include the addition of tests
2018-07-29 22:57:39 -04:00
Bruno Oliveira
e3d412d1f4
Warn when implementations exist for pytest_namespace hook
...
This hook has been deprecated and will be removed in the future.
Fix #2639
2018-07-29 22:20:23 -03:00
Bruno Oliveira
6f9a12a8a3
Merge pull request #3486 from ammarnajjar/last-failed-no-failures_docs_correction
...
--last-failed-no-failures docs correction
2018-07-29 21:26:03 -03:00
Bruno Oliveira
0e47599572
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-07-29 21:15:51 -03:00
Bruno Oliveira
317cd41215
Preparing release version 3.6.4
2018-07-28 12:59:04 +00:00
Bruno Oliveira
7f27512a48
Pin pluggy to <0.8
2018-07-28 09:46:35 -03:00
Bruno Oliveira
011f88f7e7
Deprecate calling fixture functions directly
...
This will now issue a RemovedInPytest4Warning when the user calls
a fixture function directly, instead of requesting it from test
functions as is expected
Fix #3661
2018-07-26 19:58:42 -03:00
Bruno Oliveira
2eb9301ad5
Improve CHANGELOG
2018-07-25 08:09:31 -03:00
Alan Brammer
75db608479
update changelog
2018-07-18 17:56:00 -04:00
Bruno Oliveira
0bb29d5649
Merge pull request #3685 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-07-15 16:53:39 -03:00
Bruno Oliveira
ac9ceaacd8
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-07-15 11:54:14 -03:00
Bruno Oliveira
771d3e8f4f
Merge pull request #3684 from Vlad-Shcherbina/type_comments
...
Replace broken type annotations with type comments
2018-07-15 11:52:12 -03:00
Tadek Teleżyński
d2fe619120
Fix truncated locals in verbose mode
2018-07-15 11:30:26 -03:00
Vlad Shcherbina
58e77f58bd
Replace broken type annotations with type comments
...
Fixes #3635 .
2018-07-15 16:58:39 +03:00
Hugo Martins
6a4fa4f485
Fix more linting issues
2018-07-14 16:44:47 +01:00
Hugo Martins
5be03bff61
Add changelog information
2018-07-14 16:37:55 +01:00
Bruno Oliveira
aa47b64e2a
Improve CHANGELOG entry
2018-07-11 21:07:21 -03:00
Bruno Oliveira
251adbf644
Merge with upstream/master
2018-07-11 20:46:14 -03:00
Anthony Sottile
4ae93a7a07
Remove obsolete __future__ imports
2018-07-08 08:37:02 -07:00
Anthony Sottile
42bbb4fa8a
Use -mpytest when invoking pytest in pytester
2018-07-07 17:18:44 -07:00
Bruno Oliveira
803302e70c
Fix end-of-line in 2220.bugfix.rst
2018-07-07 11:13:48 -03:00
Bruno Oliveira
05f1d0d3ef
Update README for CHANGELOG about using multiple paragraphs
2018-07-07 11:07:13 -03:00
Bruno Oliveira
1cd62f8c38
Update CHANGELOG template to put issue links at the start of entries
...
This allows us to use the new multi-line entries available with
towncrier 18.6.0
2018-07-07 11:02:33 -03:00
Bruno Oliveira
a522fc745a
Small tweaks to the changelog entries
2018-07-07 10:43:37 -03:00
Bruno Oliveira
303133f013
Merge pull request #3647 from jeffreyrack/3610-add-trace-option
...
3610 add trace option
2018-07-07 10:05:34 -03:00
Bruno Oliveira
027d2336b8
Add minimal docs for package-scoped fixtures (experimental)
2018-07-05 21:56:31 -03:00
Bruno Oliveira
3c19370cec
Merge remote-tracking branch 'upstream/features' into jonozzz/features
2018-07-05 18:15:17 -03:00
Bruno Oliveira
7696d5371a
Merge remote-tracking branch 'upstream/master' into features
2018-07-04 18:49:35 -03:00
Bruno Oliveira
43c0346d68
Preparing release version 3.6.3
2018-07-04 00:51:21 +00:00
Bruno Oliveira
b84a646389
Add note to the changelog
2018-07-03 21:08:27 -03:00
Hugo Martins
f52a5d3be2
Merge remote-tracking branch 'upstream/master'
2018-07-03 23:11:35 +01:00