Daniel Hahler
eee8201e4f
Merge remote-tracking branch 'origin/master' into merge-master
2018-10-24 22:36:34 +02:00
Daniel Hahler
f8f4c16020
TerminalWriter: write "collecting" msg only once every 0.1s
...
Running `pytest -k doesnotmatch` on pytest's own tests takes ~3s with
Kitty terminal for me, but only ~1s with `-q`.
It also is faster with urxvt, but still takes 2.2s there.
This patch only calls `report_collect` every 0.1s, which is good enough
for reporting collection progress, and improves the time with both Kitty
and urxvt to ~1.2s for me.
2018-10-24 16:48:35 +02:00
Bruno Oliveira
8bced7415c
Merge pull request #4220 from anpr/doc_raise_on_empty_parameterset
...
Add `empty_parameter_set_mark` ini option documentation to the parametrize doc
2018-10-23 19:10:44 -03:00
Andreas Profous
0dd85157ea
Add reference to ``empty_parameter_set_mark`` parametrize doc
2018-10-23 22:03:05 +02:00
Daniel Hahler
fadac0ffc0
Fix "Plugin already registered" error with symlinks
...
Fixes https://github.com/pytest-dev/pytest/issues/4174 .
2018-10-23 10:15:23 +02:00
Bruno Oliveira
771e860011
Preparing release version 3.9.2
2018-10-22 21:47:42 +00:00
Ankit Goel
cd72e23f3f
Merge pull request #4207 from nicoddemus/recursive-dep-fixtures
...
Improve error message when a recursive dependency between fixtures is detected
2018-10-20 22:19:21 +05:30
Bruno Oliveira
7bb51b8ceb
Issue a warning when a fixture named 'request' is collected
...
Fix #611
2018-10-20 12:09:44 -03:00
Bruno Oliveira
b9990f77ff
Merge pull request #4204 from vbarbaresi/3340_log_hooks
...
Fix logging usage in hooks pytest_sessionstart/finish
2018-10-20 11:36:06 -03:00
Bruno Oliveira
02ae7d8531
Improve error message when a recursive dependency between fixtures is detected
...
Fix #2909
2018-10-20 09:44:42 -03:00
Bruno Oliveira
f947cb2613
Merge remote-tracking branch 'upstream/features' into davidszotten/stepwise
2018-10-20 09:18:02 -03:00
Vincent Barbaresi
db106d6085
Fix logging usage in hooks pytest_sessionstart/finish #3340
2018-10-20 09:55:10 +02:00
Bruno Oliveira
2abd005cc9
Merge pull request #4195 from nicoddemus/issue-3691
...
Use safe_str() to format warning message about unicode in Python 2
2018-10-19 07:18:29 -03:00
Anthony Sottile
dc0b4efffa
Merge pull request #4196 from nicoddemus/better-signature-error-msg-4026
...
Improve error message when it is not possible to determine a function's signature
2018-10-18 18:56:55 -07:00
Bruno Oliveira
18035211f5
Use safe_str() to format warning message about unicode in Python 2
...
Fix #3691
2018-10-18 21:56:17 -03:00
Anthony Sottile
61080da89d
Merge pull request #4192 from asottile/fix_recwarn_stacklevel
...
Fix filename reported by `warnings.warn` when using `recwarn` under python2.
2018-10-18 16:22:00 -07:00
Bruno Oliveira
ac5704290f
Improve error message when it is not possible to determine a function's signature
...
Fix #4026
2018-10-18 20:06:43 -03:00
Bruno Oliveira
b432f1207c
Merge pull request #4190 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-10-18 19:23:16 -03:00
Anthony Sottile
cdd0e18ca8
Emulate resetting the warnings registry for python 2.x
2018-10-18 10:43:05 -07:00
Sven-Hendrik Haase
f694d8d6ad
Make --color more colorful
2018-10-18 03:56:58 +02:00
Bruno Oliveira
a83ee197c6
Merge remote-tracking branch 'upstream/master' into RonnyPfannschmidt/bump-setuptools
2018-10-17 19:05:52 -03:00
Ronny Pfannschmidt
cc335d44a0
fix #4179 - bring back the current testrun symlink
2018-10-17 20:43:27 +02:00
Ronny Pfannschmidt
4f4c91caf5
fix #4177 - pin setuptools>=40.0
2018-10-17 20:08:07 +02:00
Bruno Oliveira
ee0a306ee4
Merge remote-tracking branch 'upstream/features' into merge-features-into-master
2018-10-16 17:41:27 -03:00
Ronny Pfannschmidt
253c5786af
Preparing release version 3.9.1
2018-10-16 22:16:58 +02:00
Ronny Pfannschmidt
c4550bc922
Merge branch 'release-3.9.0' of github.com:nicoddemus/pytest into release-3.9.1
2018-10-16 22:07:38 +02:00
Ankit Goel
f858177495
Merge pull request #4167 from vbarbaresi/3533_junit_escape_skipped
...
Fix #3533 : properly escape raw XML object
2018-10-16 21:10:42 +05:30
Bruno Oliveira
54b8ad4554
Merge pull request #4159 from thisch/subclassedfile
...
Increase required verbosity level for debug output
2018-10-16 10:41:27 -03:00
Vincent Barbaresi
d72154acda
add changelog for #3533
2018-10-16 15:07:23 +02:00
Bruno Oliveira
2868c31495
Preparing release version 3.9.0
2018-10-15 20:23:30 +00:00
David Szotten
4f652c9045
we have a pr number now
2018-10-15 20:04:39 +01:00
David Szotten
8c059dbc48
draft changelog
2018-10-15 20:04:39 +01:00
Thomas Hisch
e8c220b9bd
Increase required verbosity level for debug output
...
To show the subclassed file in legacy test suits in the runtest output
you have to set the verbosity level to at least "-vv" now.
Closes #3211
2018-10-15 20:38:32 +02:00
Bruno Oliveira
9646a1cd7a
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-15 12:55:28 -03:00
Anthony Sottile
093e19a7d9
Merge pull request #4153 from asottile/syntax_warning_filename
...
Display the filename when encountering `SyntaxWarning`.
2018-10-15 08:40:51 -07:00
Bruno Oliveira
58b6e8616c
Merge pull request #4149 from RonnyPfannschmidt/modern-build
...
modernize packaging for setuptools>30.3
2018-10-15 08:13:47 -03:00
Tomer Keren
99d957bd3d
Check off PR requirements
2018-10-15 11:36:31 +03:00
Ankit Goel
141c51f0cb
Merge pull request #4145 from labcodes/4098
...
Add returncode argument to pytest.exit
2018-10-15 11:04:11 +05:30
Ronny Pfannschmidt
d65c7658d5
changelog
2018-10-15 07:32:38 +02:00
Anthony Sottile
2e42d937dc
Display the filename when encountering `SyntaxWarning`.
...
```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
. [100%]
=============================== warnings summary ===============================
<unknown>:2: DeprecationWarning: invalid escape sequence \.
-- Docs: https://docs.pytest.org/en/latest/warnings.html
1 passed, 1 warnings in 0.01 seconds
```
```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
. [100%]
=============================== warnings summary ===============================
/tmp/pytest/t/t.py:2: DeprecationWarning: invalid escape sequence \.
'\.wat'
-- Docs: https://docs.pytest.org/en/latest/warnings.html
1 passed, 1 warnings in 0.01 seconds
```
2018-10-14 16:11:47 -07:00
Jose Carlos Menezes
bbd1cbb0b3
Update changelog to better reading
2018-10-14 18:03:37 -03:00
Ronny Pfannschmidt
1dfa303b1e
fix #4135 - handle symlinks in tmp path cleanup
2018-10-14 21:20:34 +02:00
Jose Carlos Menezes
a0666354dd
Update changelog
2018-10-14 12:29:19 -03:00
Daniel Hahler
3bfaa8ab84
Merge pull request #4132 from blueyed/pdb-internal-dupe
...
Do not print (duplicate) INTERNALERROR with --pdb.
2018-10-14 11:25:35 +02:00
Bruno Oliveira
9fb305b17b
Merge pull request #4086 from jeffreyrack/4063-exclude-0-durations
...
Exclude durations that are 0.00 seconds long.
2018-10-13 22:16:04 -03:00
Daniel Hahler
7268462b33
Resolve symlinks for args
...
This fixes running `pytest tests/test_foo.py::test_bar`, where `tests`
is a symlink to `project/app/tests`: previously
`project/app/conftest.py` would be ignored for fixtures then.
2018-10-13 23:59:05 +02:00
Daniel Hahler
448830e656
Do not print INTERNALERROR with --pdb
...
This gets printed by the terminal reporter already, and currently
results in the same error being displayed twice, e.g. when raising an
`Exception` manually from `pytest.debugging.pytest_exception_interact`.
2018-10-13 23:56:34 +02:00
Jeffrey Rackauckas
47f5c29002
Update messaging for --durations when not in verbose mode.
2018-10-13 12:51:04 -07:00
Bruno Oliveira
24c83d725a
Merge pull request #4129 from nicoddemus/merge-master-into-features
...
Merge master into features (prepare for 3.9)
2018-10-13 12:05:54 -03:00
Bruno Oliveira
29d5849519
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-13 08:50:32 -03:00
Bruno Oliveira
8e11fe5304
Improve tracebacks for ImportErrors in conftest.py files
...
Fix #3332
2018-10-12 10:10:55 -03:00
Jose Carlos Menezes
dbaa9464ba
Update usefixtures documentation
...
Clarifying that it can't be used with fixture functions
2018-10-12 09:45:49 -03:00
Bruno Oliveira
933de16fe4
Merge pull request #3988 from RonnyPfannschmidt/tmpdir-port-pathlib
...
Tmpdir port pathlib
2018-10-12 08:33:47 -03:00
Bruno Oliveira
e8348a1d12
Merge pull request #4077 from nicoddemus/short-usage-errors
...
Improve internal error messages
2018-10-12 08:18:07 -03:00
Ronny Pfannschmidt
4736b2bdfb
address review comments
2018-10-11 20:48:30 +02:00
Ronny Pfannschmidt
ad6f63edda
add changelog
2018-10-11 07:15:09 +02:00
Bruno Oliveira
c9a85b0e78
Fix linting
2018-10-10 19:54:39 -03:00
Bruno Oliveira
bf265a424d
Minor adjustments found during code review
2018-10-10 19:35:49 -03:00
Bruno Oliveira
5436e42990
Use pytest.fail(..., pytrace=False) when treating user errors
...
This prevents an enormous and often useless stack trace from showing
to end users.
Fix #3867
Fix #2293
2018-10-10 19:16:53 -03:00
Anthony Sottile
dbfb3ccc42
Add changelog entry
2018-10-10 10:46:09 -07:00
Niklas JQ
d1322570dd
Fix issue 4093
2018-10-10 19:45:07 +02:00
Anthony Sottile
e0f6fce9e9
In python2, display previously warned warnings
2018-10-10 09:37:21 -07:00
Anthony Sottile
aeb92accb2
Implement pytest.deprecated_call with pytest.warns
2018-10-10 08:03:23 -07:00
Bruno Oliveira
9a3836a0cf
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-09 19:34:04 -03:00
Jeffrey Rackauckas
fc11b81005
Exclude durations that are 0.00 seconds long.
2018-10-07 19:19:48 -07:00
Ronny Pfannschmidt
66609665f2
Merge pull request #4076 from nicoddemus/unittest-param-fixture-msg
...
Improve error message when TestCase functions use a parametrized fixture
2018-10-06 07:43:57 +02:00
Kyle Altendorf
5ecbb0acba
Correct new changelog to have newline at end
2018-10-05 10:22:07 -04:00
Kyle Altendorf
ee64f1fb9f
Add changelog file for 4073
2018-10-05 10:02:59 -04:00
Bruno Oliveira
a1208f5631
Merge pull request #4075 from nicoddemus/dynamic-fixturenames
...
Fix request.fixturenames to return fixtures created dynamically
2018-10-04 09:21:23 -03:00
Anthony Sottile
b098292352
Merge pull request #4069 from asottile/deindent_4066
...
Fix source reindenting by using `textwrap.dedent` directly.
2018-10-03 16:11:51 -07:00
Bruno Oliveira
212937eb3e
Improve error message when TestCase functions use a parametrized fixture
...
Fix #2535
2018-10-03 19:43:46 -03:00
Bruno Oliveira
70c7273640
Fix request.fixturenames to return fixtures created dynamically
...
Fix #3057
2018-10-03 18:50:14 -03:00
Palash Chatterjee
f9ac60807c
Fixes #4064 by correcting the documentation for unit-tests
2018-10-03 18:11:09 +05:30
Bruno Oliveira
3f03625a5d
Merge pull request #4070 from jeffreyrack/4058-update-fixture-docs
...
Update documentation to indicate a fixture can be invoked more than once in it's scope.
2018-10-03 08:39:41 -03:00
Jeffrey Rackauckas
642847c079
Update documentation on fixture being invoked more than once in a scope.
2018-10-02 20:53:15 -07:00
Anthony Sottile
f102ccc8f0
Fix source reindenting by using `textwrap.dedent` directly.
2018-10-02 16:13:35 -07:00
Anthony Sottile
d3673c7429
Preparing release version 3.8.2
2018-10-02 07:46:02 -07:00
Bruno Oliveira
25fe3706a4
Merge pull request #4056 from nicoddemus/unicode-vars
...
Ensure Monkeypatch setenv and delenv use bytes keys in Python 2
2018-10-02 07:56:32 -03:00
Bruno Oliveira
5e7d427df1
Merge pull request #4060 from nicoddemus/4051-changelog
...
Improve changelog for #4051
2018-10-01 18:12:52 -03:00
Bruno Oliveira
20d0f0e56b
Improve changelog for #4051
2018-10-01 17:12:05 -03:00
Bruno Oliveira
d24a7e6c5a
Issue warning if Monkeypatch.setenv/delenv receive non-strings in Python 2
...
Fixes the bug described in:
https://github.com/tox-dev/tox/pull/1025#discussion_r221273830
Which is more evident when using `unicode_literals`.
2018-10-01 17:05:30 -03:00
Jose Carlos Menezes
4dc73bda45
Update changelog
2018-10-01 14:41:30 -03:00
Ronny Pfannschmidt
5d2d64c190
Merge pull request #4057 from jeffreyrack/4051-improve-error-messaging
...
Improve error messaging when invalid syntax is passed to the -m option
2018-10-01 07:16:59 +02:00
Jeffrey Rackauckas
7a6d16c1eb
Adding .rst to end of changelog fragment filename.
2018-09-30 18:45:49 -07:00
Jeffrey Rackauckas
c2179c3127
Improve error messaging when invalid syntax is passed to the -m option
2018-09-30 18:34:56 -07:00
Bruno Oliveira
d8d7f73e1c
Merge pull request #4045 from nicoddemus/root-conftest-warning-workaround-4039
...
Do not issue non-top-level conftest warning when --pyargs is used
2018-09-27 09:26:11 -03:00
Ronny Pfannschmidt
3c23b5b010
Merge pull request #4037 from nicoddemus/deprecate-item-warnings-captured-hook
...
Document that item parameter of pytest_warning_captured hook is deprecated
2018-09-27 13:20:26 +02:00
Bruno Oliveira
783019a8e6
Rename 4040.trivial.rst to 4040.bugfix.rst
2018-09-27 08:08:03 -03:00
Bruno Oliveira
d2fc7ca6e0
Merge pull request #4041 from Zac-HD/user-properties-type
...
Ensure user_properties is a list
2018-09-27 08:04:30 -03:00
Denis Otkidach
44d29d887e
Changelog entry on excluding empty reports for passed tests
2018-09-26 19:02:35 +03:00
Bruno Oliveira
32c5a113e2
Do not issue non-top-level conftest warning when --pyargs is used
...
Fix #4039
2018-09-26 12:02:08 -03:00
Zac-HD
6be2136f20
Ensure user_properties is a list
2018-09-26 22:04:50 +10:00
Bruno Oliveira
1636522563
Document that item parameter of pytest_warning_captured hook is deprecated
...
Our policy is to not deprecate features during bugfix releases, but in this
case I believe it makes sense as we are only documenting it as deprecated,
without issuing warnings which might potentially break test suites.
This will get the word out that hook implementers should not use this parameter
at all.
Fix #4036
2018-09-25 17:38:22 -03:00
iwanb
c61ff31ffa
Fix #3539 : reload module with assertion rewrite import hook
2018-09-23 13:05:55 +02:00
Ronny Pfannschmidt
e03a19f88d
Merge pull request #4021 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-09-23 11:57:05 +02:00
Bruno Oliveira
fcc5b6d604
Add "deprecation" to possible changelog entries in pre-commit
2018-09-22 18:43:22 -03:00
Bruno Oliveira
56d0b5a7e2
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-09-22 18:14:36 -03:00
CrazyMerlyn
3f6a46c2a4
Preparing release version 3.8.1
2018-09-22 16:34:06 +00:00
Bruno Oliveira
c30184709d
Show deprecation warnings even if filters are customized
...
Fix #4013
2018-09-22 10:25:57 -03:00
Ronny Pfannschmidt
f02dbaf97f
Merge pull request #4010 from nicoddemus/package-len-error-3749
...
Fix 'Package has no len()' error during collection
2018-09-21 07:40:20 +02:00
Bruno Oliveira
41f6ea13ce
Fix 'Package has no len()' error during collection
...
Fix #3749
2018-09-20 17:53:21 -03:00
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
c2841542af
Introduce deprecations page
...
fix #3996
2018-09-19 19:51:29 -03:00
Bruno Oliveira
d1fa8ae08e
Improve CHANGELOG entry
2018-09-19 12:52:10 -03: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
Thomas Hisch
d1a3aa7b2b
Update 3964.rst
2018-09-18 21:31:20 +02:00
Thomas Hisch
e967d4587a
Add support for logging in collection-phase
...
The logging plugin does not output log messages generated during the
collection-phase when live-logging is enabled. This fixes this.
Fixes #3964
2018-09-18 20:18:24 +02:00
Bruno Oliveira
a79dc12f1e
Merge pull request #3970 from sambarluc/raise_on_empty_parameterset
...
Raise exception if parametrize collects an empty parameter set
2018-09-18 08:11:34 -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
Andrea Cimatoribus
913c07e414
Add changelog file and new author
2018-09-15 09:18:03 +02:00
Bruno Oliveira
86a14d007d
Fix scope determination with indirect parameters
...
Fix #3941
2018-09-14 21:33:59 -03:00
Bruno Oliveira
9aa6b0903b
.pytest_cache is now automatically ignored by Git
2018-09-14 15:16:40 -03:00
Bruno Oliveira
da6830f19b
Introduce UnformattedWarning to keep warning types and messages in _pytest.deprecated
2018-09-14 14:49:05 -03:00
Bruno Oliveira
b7dd9154c3
Deprecate custom node types during collection by using special names
2018-09-13 14:55:28 -03:00
Bruno Oliveira
482bd5efd2
Show deprecation warning for cached_setup
2018-09-13 14:25:46 -03:00
Bruno Oliveira
bf074b37a3
Show deprecation warnings for compat properties
...
Fix #3616
2018-09-13 14:10:30 -03:00
Bruno Oliveira
495a55725b
Separate deprecations and removals in the CHANGELOG
2018-09-13 14:02:01 -03:00
Ronny Pfannschmidt
8fe55b1d18
add changelog for fix #3975
2018-09-13 15:40:45 +02:00
Bruno Oliveira
ab40696007
-W now takes precedence over filters in ini files
...
Fix #3946
2018-09-11 19:00:42 +02:00
Anthony Sottile
826adafe2e
Improve pre-commit detection for changelog filenames
2018-09-07 09:36:09 -07:00
Bruno Oliveira
b55351274e
Amend CHANGELOG with missing #3251
2018-09-06 18:56:08 -03:00
Bruno Oliveira
1f20626618
Preparing release version 3.8.0
2018-09-05 21:06:32 +00:00
Bruno Oliveira
69b34f7658
Merge remote-tracking branch 'upstream/master' into release-3.8.0
2018-09-05 18:02:02 -03:00
Bruno Oliveira
531b76a513
Merge pull request #3931 from nicoddemus/internal-warnings
...
Use standard warnings for internal pytest warnings
2018-09-05 14:05:52 -03:00
Bruno Oliveira
f63c683faa
No longer escape regex in pytest.mark.filterwarnings
...
Fix #3936
2018-09-05 10:20:25 -03:00
Ronny Pfannschmidt
410d5762c0
Merge pull request #3919 from fabioz/master
...
Improve import performance of assertion rewrite. Fixes #3918 .
2018-09-05 14:33:40 +02:00
Bruno Oliveira
47bf58d69e
Make Node.warn support two forms, new and deprecated
...
As suggested during review, it now accepts two forms:
Node.warn(warning_instance) (recommended)
Node.warn(code, message) (deprecated)
2018-09-04 15:53:17 -03:00
Bruno Oliveira
415a62e373
Fix typo in PytestExperimentalApiWarning
2018-09-04 11:35:35 -03:00
Bruno Oliveira
b818314045
Improve docs for warnings capture and PEP-0506 remarks
2018-09-04 11:35:34 -03:00
Bruno Oliveira
9965ed84da
Show deprecation warnings by default if no other filters are configured
...
Fix #2908
2018-09-04 11:35:34 -03:00
Bruno Oliveira
7e13593452
Add CHANGELOG entries for #2452
...
Fix #2452
Fix #2684
2018-09-04 11:35:34 -03:00
Bruno Oliveira
1a9d913ee1
Capture and display warnings during collection
...
Fix #3251
2018-09-04 11:35:06 -03:00
CrazyMerlyn
b01704cce1
Fix exit code for command line errors
...
Fixes #3913
2018-09-03 04:16:35 +00:00
Bruno Oliveira
885b8a3b4c
Fix linting
2018-09-01 11:13:40 -03:00
Bruno Oliveira
495b44198f
Merge pull request #3917 from dhirensr/docs_for_detailed_info
...
T3566,T3546: added a blurb in usage.rst for usage of flag -r
2018-09-01 10:09:29 -03:00
Fabio Zadrozny
d53e449296
Improve performance of assertion rewriting. Fixes #3918
2018-08-31 12:27:08 -03:00
dhirensr
95881c870e
T3566,T3546: added a blurb in usage.rst for usage of flag -r
2018-08-31 11:20:15 +05:30
Bruno Oliveira
19fa01b91d
Tweak changelog
2018-08-30 21:17:14 -03:00
wim glenn
ed4b94a180
add changelog entry
2018-08-30 18:59:58 -05:00
Bruno Oliveira
11e591e442
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-08-30 19:55:23 -03:00
Bruno Oliveira
84a033fd97
Remove extra newline
2018-08-30 19:48:47 -03:00
Bruno Oliveira
0183d46275
Improve CHANGELOG a bit
2018-08-30 19:44:04 -03:00
dhirensr
ade01b1f5b
T3853:Added changelog file
2018-08-30 16:03:18 +05:30
hoefling
8c96eea583
doc fix: raises accepts tuples instead of lists ( fixes #3907 )
2018-08-30 00:19:59 +02:00
Anthony Sottile
aea962dc21
Preparing release version 3.7.4
2018-08-29 08:57:54 -07:00
Bruno Oliveira
bf47033169
Fix linting
2018-08-28 21:05:34 -03:00
Steve Piercy
37a65684d6
add changelog entry
2018-08-28 14:51:27 -07:00
Bruno Oliveira
10c1c7c41a
Merge pull request #3895 from nicoddemus/issue-3506
...
Avoid possible infinite recursion when writing pyc files in assert rewrite
2018-08-28 18:16:10 -03:00
Bruno Oliveira
b77e533693
Merge pull request #3893 from jirikuncar/3892-macos
...
travis: run tests on macOS
2018-08-28 17:06:17 -03:00
Bruno Oliveira
a605ad4d11
Merge pull request #3880 from jeffreyrack/3829-progress_display_mode
...
#3829 -- Add the ability to show test progress as number of tests completed instead of a percent.
2018-08-28 16:54:14 -03:00
Jeffrey Rackauckas
4b94760c8e
Removed spacing in count display.
2018-08-27 20:23:17 -07:00
Bruno Oliveira
82a7ca9615
Avoid possible infinite recursion when writing pyc files in assert rewrite
...
What happens is that atomic_write on Python 2.7 on Windows will try
to convert the paths to unicode, but this triggers the import of
the encoding module for the file system codec, which in turn triggers
the rewrite, which in turn again tries to import the module, and so on.
This short-circuits the cases where we try to import another file when
writing a pyc file; I don't expect this to affect anything because
the only modules that could be affected are those imported by
atomic_writes.
Fix #3506
2018-08-27 21:29:45 -03:00
Bruno Oliveira
2a059b1c1b
Merge pull request #3885 from nicoddemus/bad-output-classic
...
Fix bad console output when using console_output_style=classic
2018-08-27 19:07:02 -03:00
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
Jean-Paul Calderone
b815f67e65
add changelog
2018-07-03 13:40:04 -04:00
Jeffrey Rackauckas
0b70477930
Fix linting issues.
2018-07-01 20:18:00 -07:00
Jeffrey Rackauckas
57198d477b
Adding changelog entry for the --trace option.
2018-07-01 12:14:35 -07:00
Bruno Oliveira
2b75a311a7
Merge pull request #3637 from RonnyPfannschmidt/fix-3631
...
fix #3631 - don't store legacy markinfo when its impossible
2018-06-30 17:48:46 -03:00
Hugo Martins
f7c929c932
Fix linting errors in docs/fixtures.rst
2018-06-30 14:34:19 +01:00
Hugo Martins
b48f1d378b
Clarify examples in fixtures' documentation
2018-06-30 02:01:49 +01:00
Victor
738933938a
Added changelog.
2018-06-29 16:18:16 +02:00
Ronny Pfannschmidt
5bd5b8c68a
fix #3631 - don't store legacy markinfo when its impossible
2018-06-29 14:01:20 +02:00
Bruno Oliveira
8680dfc939
Merge pull request #3629 from egnartsms/issue-2220-param-breaks-dep
...
Make test parametrization override indirect fixtures
2018-06-28 21:43:21 -03:00
Serhii Mozghovyi
76ac670f7d
Add changelog description
2018-06-28 23:42:18 +03:00
Ronny Pfannschmidt
3c73d6298a
merge from master to features
2018-06-28 17:32:41 +02:00
Ronny Pfannschmidt
581d49635e
add docs and changelog
2018-06-27 06:52:36 +02:00
Ronny Pfannschmidt
643e5a9c44
fix docs
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
b8486037d3
fix #3605 - unpack markdecorators from parameterization
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
89e0a3ec27
merge from master to features
2018-06-26 17:01:05 +02:00
Marcelo Duarte Trevisani
0030ceb11c
Bug fix #3593 - approx method in a single element of numpy array
...
If the user pass as a expected value a numpy array created like
numpy.array(5); it will creates an array with one element without shape,
when used with approx it will raise an error
'TypeError: iteration over a 0-d array'
2018-06-25 22:55:16 +02:00
Bruno Oliveira
50a0d4fa95
Merge pull request #3613 from asottile/module_spec_warnings
...
Fix `ImportWarning` triggered by explicit relative imports
2018-06-23 18:27:19 -03:00
Anthony Sottile
22a2734d9a
Merge pull request #3611 from AdamEr8/doc-fix-skipif
...
Doc Fix: skipif's example description
2018-06-23 14:06:30 -07:00
Anthony Sottile
1d55c49a9a
Fix `ImportWarning` triggered by explicit relative imports
2018-06-23 07:55:49 -07:00
Bruno Oliveira
8cc210708c
Improve changelog and change it to doc
2018-06-22 09:14:59 -03:00
AdamEr8
f883628939
Changelog mistake
...
Used pytest.fixture.skipif instead of pytest.mark.skipif
2018-06-22 08:51:26 +03:00
AdamEr8
40839b5a3a
Rename prnum.trivial.rst to 3611.trivial.rst
2018-06-22 08:46:34 +03:00
AdamEr8
5e56d77542
Create prnum.trivial.rst
...
Added changelog file
2018-06-22 08:33:35 +03:00
Bruno Oliveira
eb94bce3e2
Change 3519 to trivial
2018-06-21 20:11:22 -03:00
Bruno Oliveira
b897008887
Improve CHANGELOG grammar
2018-06-21 20:09:32 -03:00
Anthony Sottile
8b4c59e606
Silence usage of `reduce` warning in python 2
2018-06-21 13:27:00 -07:00
avirlrma
998d540b73
fixed changelog entry
2018-06-21 17:56:26 +05:30
avirlrma
c672bfa32e
added changelog entry
...
moved cache readme tests to test_cacheprovider.py
2018-06-21 17:43:10 +05:30
Ronny Pfannschmidt
e86fe38144
Merge pull request #3598 from nicoddemus/small-callspec2-cleanup
...
Remove unused attribute and parameter in CallSpec2
2018-06-20 18:04:34 +02:00
Bruno Oliveira
617a5fcf98
Preparing release version 3.6.2
2018-06-20 00:29:58 +00:00
Bruno Oliveira
93e55ad2fa
Remove unused attribute and parameter in CallSpec2
2018-06-18 21:48:49 -03:00
Bruno Oliveira
2925f3057f
Merge pull request #3584 from jwodder/fix-3583
...
Fix encoding error with `print` statements in doctests
2018-06-18 08:03:07 -03:00
Alex Barbato
561db95521
Add changelog file.
2018-06-16 12:44:19 -04:00
John T. Wodder II
d382f3e77f
[ #3583 ] Fix encoding error with `print` statements in doctests
...
This fix was suggested by Stack Overflow user phd in
<https://stackoverflow.com/a/50863820/744178 >.
2018-06-15 17:23:54 +00:00
Wil Cooley
3615977608
Add `messages` property to `caplog` fixture.
2018-06-14 12:22:33 -07:00
Ronny Pfannschmidt
791bb3502c
changelog
2018-06-13 17:29:42 +02:00
Bruno Oliveira
9a7c3a65f4
Improve CHANGELOG formatting
2018-06-12 11:07:42 -03:00
Ronny Pfannschmidt
37793d4cdb
fix addmarker - extract mark from markdecorator
2018-06-12 15:50:58 +02:00
Bruno Oliveira
e0a1da4eb9
Remove changelog for #3554
...
This entry was removed in #3562
2018-06-11 23:17:11 -03:00
Anthony Sottile
ef88251573
Merge pull request #3570 from sangongs/fix_stack_finalizer
...
Continue to call finalizers in the stack when a finalizer raises an exception
2018-06-11 19:07:59 -07:00
Guoqiang Zhang
a888bf182e
Continue to call finalizers in the stack when a finalizer in a former scope raises an exception
2018-06-11 18:01:18 -04:00
Michael Käufl
4a78711067
Fix typo in documentation
2018-06-11 13:28:09 +02:00
Bruno Oliveira
11705040ac
Merge pull request #3563 from asottile/undetermined_location_none
...
Print <undetermined location> instead of None for warnings
2018-06-10 16:19:50 -03:00
Anthony Sottile
fe81de6150
git mv changelog/3554.bugfix{,.rst}
2018-06-10 10:53:15 -07:00
Anthony Sottile
49f621de76
Print <undetermined location> instead of None for warnings
2018-06-10 10:51:36 -07:00
Bruno Oliveira
198e993969
Format CHANGELOG
2018-06-09 21:31:32 -03:00
Alan Velasco
1a7dcd73cf
Add a default value to CallInfo.result
2018-06-09 16:58:23 -07:00
Bruno Oliveira
97d48ba60d
Add documentation blurb for --strict
...
Fix #3549
2018-06-09 12:02:21 -03:00
Anthony Sottile
4c01dd651e
Add changelog entry for #3552
2018-06-08 06:20:57 -07:00
Bruno Oliveira
942d363c03
Improve changelog formatting
2018-06-07 18:55:50 -03:00
Daniel Hahler
c30c137a95
Improve display of hint about --fulltrace with KeyboardInterrupt
...
- display the location first
- display hint about --fulltrace in parenthesis
2018-06-07 23:50:24 +02:00
Bruno Oliveira
66ec0a50b6
Preparing release version 3.6.1
2018-06-05 01:11:27 +00:00
Bruno Oliveira
cc793a8575
Merge pull request #3522 from NiklasMM/fix/3461_factory-fixture-doc
...
Add factory fixture example to documentation.
2018-06-04 22:09:50 -03:00
Ronny Pfannschmidt
7f5cb46835
Merge pull request #3531 from hroncok/370b5
...
Module docstrings in 3.7 are not part of Module node anymore
2018-06-05 01:16:14 +02:00
Miro Hrončok
9a6fa33c69
Module docstrings in 3.7 are not part of Module node anymore
...
Fixes https://github.com/pytest-dev/pytest/issues/3530
2018-06-04 13:58:35 +02:00
Anthony Sottile
2f6555dfd3
Add changelog entry
2018-06-03 13:12:49 -07:00
Niklas Meinzer
08de3dad33
Add factory fixture example to documentation.
...
Close https://github.com/pytest-dev/pytest/issues/3461
2018-05-31 11:21:10 +02:00
Ronny Pfannschmidt
130f76f66e
enable pip/pre-commit caching on travis and appveyor
2018-05-27 13:05:10 +02:00
Ronny Pfannschmidt
eaa882f3d5
switch to src layout
2018-05-26 09:10:38 +02:00
Bruno Oliveira
1d451c786d
Merge pull request #3509 from nicoddemus/marshal-3503
...
Write rewritten code using file.write(marshal.dumps())
2018-05-25 21:24:45 -03:00
Bruno Oliveira
1b16d649f9
Fix formatting of merged files
2018-05-25 18:21:48 -03:00
Bruno Oliveira
6f8547cc1a
Merge branch 'master' into pre-commit-hook
2018-05-25 18:14:43 -03:00
Bruno Oliveira
b5a94d8e6c
Write rewritten code using file.write(marshal.dumps())
...
This works around the fact that some libraries might monkey patch
the file object, so the previous approach of marshal.dump(co, file)
breaks because file is not a built-in file object anymore.
Fix #3503
2018-05-25 17:24:23 -03:00
Bruno Oliveira
93fdad28aa
Merge pull request #3499 from jeffreyrack/3491-junit-logging
...
3491 - Fixed a bug where stdout and stderr were logged twice by junitxml for xfail tests.
2018-05-24 20:50:16 -03:00
Bruno Oliveira
bc25d51b2f
Re-word changelog
2018-05-24 07:27:40 -03:00
Ronny Pfannschmidt
5a0c9aca63
correctly instantiate fixtureinfo for unittest tests, fixes #3498
2018-05-24 10:29:42 +02:00
Jeffrey Rackauckas
210ad22dbe
Updating changelog text
2018-05-23 19:43:06 -07:00
Jeffrey Rackauckas
6c519b1280
Fixed a bug where stdout and stderr were logged twice by junitxml.
2018-05-23 19:34:45 -07:00
Ronny Pfannschmidt
86fc31db8d
apply most other hooks and opt out of black reformating
2018-05-23 16:45:58 +02:00
Bruno Oliveira
d70e910b65
Preparing release version 3.6.0
2018-05-23 00:07:48 +00:00
Bruno Oliveira
c55db1faac
Merge remote-tracking branch 'upstream/master' into release-3.6.0
2018-05-23 00:03:58 +00:00
Miro Hrončok
5072226f69
Import Mapping and Sequence from compat in python_api::approx
...
Related to https://github.com/pytest-dev/pytest/issues/3339
Fixes a DeprecationWarning on Python 3.7
Adds Mapping to compat
2018-05-22 22:25:15 +02:00
Bruno Oliveira
7d0c9837ce
Merge pull request #3459 from RonnyPfannschmidt/mark-iter-name-filter
...
introduce name filtering for marker iteration again
2018-05-21 13:24:39 -03:00
Tyler Goodlet
486b786cb2
Add trivial changelog entry
2018-05-18 12:02:50 -04:00
Bruno Oliveira
674879976f
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-05-18 12:30:08 -03:00
Bruno Oliveira
e7f75f69f2
Small grammar fix in CHANGELOG
2018-05-17 21:20:43 -03:00
Bruno Oliveira
5be85a1f55
Merge changelog marks refactoring changelog entries as discussed in review
2018-05-17 21:18:12 -03:00
Ammar Najjar
9ddd573774
Issue #3295 : add changelog doc entry for adding a missing argument in
...
the examples
2018-05-17 23:11:37 +02:00
Bruno Oliveira
718ba83600
Small adjustment to the CHANGELOG
2018-05-15 21:02:05 -03:00
Bruno Oliveira
1b2f4f4483
Small rewording to the CHANGELOG
2018-05-15 21:01:37 -03:00
Bruno Oliveira
f68bab06b4
Reword the changelog
2018-05-15 18:24:14 -03:00
aviral1701
f14e097635
added changelog and added my name to the authors
2018-05-15 12:54:48 +05:30
Ronny Pfannschmidt
4914135fdf
introduce name filtering for marker iteration again
2018-05-11 21:48:15 +02:00
Bruno Oliveira
dca77b2273
Escape whitespace only strings when diffing them on failed assertions
...
Fix #3443
2018-05-03 20:38:00 -03:00
Bruno Oliveira
35f53a7353
Merge pull request #3442 from RonnyPfannschmidt/fix-3441-markexpr-markstorage
...
Fix #3441 let mark expressions be populated from the modern marker storage
2018-05-03 19:27:07 -03:00
Bruno Oliveira
b03b387861
Merge pull request #3436 from brianmaissy/feature/enter_pdb_on_keyboard_interrupt
...
--pdb treats KeyboardInterrupt as exception
2018-05-03 12:20:43 -03:00
Ronny Pfannschmidt
63ef46dd91
fix #3441 - use iter-marks to populate markexpr namespace
2018-05-03 16:28:47 +02:00
Bruno Oliveira
ccaa979f27
Improve changelog note about markers
...
Also changed the title in the docs because the previous title had
the same level as the title, making it appear in a separate entry
in `contents.rst`
2018-05-01 19:27:53 -03:00
Brian Maissy
c258fe1459
--pdb treats KeyboardInterrupt as exception
2018-05-02 00:58:35 +03:00
Jon Dufresne
d2bf0bf9bb
Update all pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-26 06:49:33 -07:00
turturica
05b5b64379
Merge remote-tracking branch 'upstream/features' into features
2018-04-25 21:20:39 -07:00
Bruno Oliveira
63368e07ea
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-04-24 21:26:45 -03:00
Bruno Oliveira
0b2b73c36a
Remove CHANGELOG entries left by old bug in towncrier
2018-04-24 21:25:13 -03:00
turturica
d483b401ee
Merge remote-tracking branch 'upstream/features' into features
2018-04-24 13:45:10 -07:00
Bruno Oliveira
132fb61eba
Merge remote-tracking branch 'upstream/features' into ApaDoctor/disable-repeated-fixture
2018-04-23 22:24:53 -03:00
Bruno Oliveira
2a480c59ae
Merge pull request #3367 from brianmaissy/feature/indicative_error_for_parametrize_with_default_argument
...
added indicative error when parametrizing an argument with a default …
2018-04-23 11:04:36 -03:00
turturica
e44d4e6508
Merge remote-tracking branch 'upstream/features' into features
2018-04-20 15:21:24 -07:00
Bruno Oliveira
cefeba33ef
Update changelog formatting
2018-04-20 17:40:19 -03:00
Bruno Oliveira
3318e53d01
Merge pull request #3382 from feuillemorte/3290-improve-monkeypatch
...
#3290 improve monkeypatch
2018-04-19 17:05:52 -03:00
turturica
7d923c389e
Merge remote-tracking branch 'upstream/features' into features
2018-04-18 00:11:03 -07:00
Rachel Kogan
48c99f62e3
add changelog
2018-04-17 16:24:32 -04:00
Brian Maissy
857098fe0f
added indicative error when parametrizing an argument with a default value
2018-04-15 20:52:57 +03:00
Holger Kohr
6626d2aef9
Mention omission of fixtures with leading '_', closes #3398
2018-04-14 11:04:00 +02:00
feuillemorte
ba7cad3962
#3290 Fix comments
2018-04-13 16:00:07 +03:00
Bruno Oliveira
aa95a425d7
Attempt to solve race-condition which corrupts .pyc files on Windows
...
This uses of the `atomicwrites` library.
This is very hard to create a reliable test for.
Fix #3008
2018-04-12 08:19:28 -03:00
Bruno Oliveira
015626ce69
Merge pull request #3384 from nicoddemus/leak-frame
...
Reset reference to failed test frame before each test executes
2018-04-12 07:53:34 -03:00
turturica
2b1410895e
Add package scoped fixtures #2283
2018-04-11 15:39:42 -07:00
Bruno Oliveira
10a7160549
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-04-11 18:07:47 -03:00
feuillemorte
97be076f29
#3290 Added changelog file
2018-04-11 12:45:46 +03:00
Bruno Oliveira
6e8e3c967a
Add changelog entry for #2798
2018-04-10 21:09:57 -03:00
Ronny Pfannschmidt
2241c98b18
Merge pull request #3331 from tonybaloney/breakpoint_support
...
Support for the new builtin breakpoint function in Python 3.7
2018-04-10 07:15:29 +02:00
Tim Strazny
ec2d8223cf
Fix issue #3372
2018-04-06 14:16:12 +02:00
Bruno Oliveira
ef34de960c
Merge pull request #3360 from RonnyPfannschmidt/xml_property_yay
...
record_property is no longer experimental
2018-04-05 20:03:22 -03:00
Bruno Oliveira
9a62ebf490
Merge pull request #3355 from irmen/py37deprfixes
...
change collections.abc import to fix deprecation warnings on python 3.7
2018-04-02 20:31:26 -03:00
Ronny Pfannschmidt
211f3c47b5
record_property is no longer experimental
2018-04-01 15:39:43 +02:00
Floris Bruynooghe
77128ee2dc
Merge pull request #3356 from nicoddemus/remove-stale-changelog-entries
...
Remove stale CHANGELOG entries
2018-03-30 14:19:38 +02:00
Bruno Oliveira
e5eba8419a
Remove stale CHANGELOG entries
...
Those were not removed in the last release because of a bug in
towncrier; I was about to fallback to don't use the .rst extension
for entries but just noticed that this was fixed in towncrier 17.8.0
so it should no longer be a problem.
2018-03-29 19:21:59 -03:00
Bruno Oliveira
6a81aae4f2
Move compatibility imports to compat.py and fix linting
2018-03-29 19:05:15 -03:00
Ronny Pfannschmidt
775fb96ac3
first changelog entry
2018-03-29 17:52:01 +02:00
Bruno Oliveira
7656581302
Update changelog formatting
2018-03-28 07:31:26 -03:00
Jeffrey Rackauckas
34afded06d
Update pytest.raises to raise a TypeError when an invalid keyword argument is passed.
2018-03-27 19:57:15 -07:00
Bruno Oliveira
060f047a7e
Use full link in CHANGELOG
...
Our rst-linter unfortunately doesn't accept `ref` directives in the CHANGELOG files
2018-03-27 18:35:47 -03:00
Bruno Oliveira
2962c7367c
Merge pull request #3307 from KKoukiou/rhv-qe-fix
...
logging.py: Don't change log level of the root logger to bigger numeric value
2018-03-27 18:03:22 -03:00
Anthony Shaw
671ab5a36c
update documentation for new feature
2018-03-27 21:02:43 +11:00
Bruno Oliveira
6cfed00a61
Tweak changelog entry
2018-03-26 20:48:05 -03:00
Katerina Koukiou
d895f5d6fc
logging.py: Don't change log level of the root logger to bigger numeric value
2018-03-26 10:11:49 +02:00
Anthony Shaw
dcbba381d4
add changelog entry
2018-03-23 15:31:16 +11:00
Bruno Oliveira
5ecff65285
Merge pull request #3327 from nicoddemus/release-3.5.0
...
Release 3.5.0
2018-03-22 20:58:15 -03:00
Ronny Pfannschmidt
d7d4afea17
Merge pull request #3330 from nicoddemus/remove-custom-flatten
...
Remove terminal.flatten function in favor of collapse from more_itertools
2018-03-22 14:22:47 +01:00
Bruno Oliveira
6c2739d1e6
Add CHANGELOG for #3330
2018-03-21 20:23:17 -03:00
Bruno Oliveira
f3c87a77a7
Merge remote-tracking branch 'upstream/master' into release-3.5.0
2018-03-21 20:39:44 +00:00
Bruno Oliveira
6f95189cf7
Merge pull request #3306 from nicoddemus/2405-scope-fixture-order
...
Instantiate fixtures by scope order in test function requests
2018-03-21 17:37:05 -03:00
Ronny Pfannschmidt
add5ce0fb8
Merge pull request #3230 from brianmaissy/features
...
deprecate pytest_plugins in non-top-level conftest
2018-03-21 07:44:34 +01:00
Bruno Oliveira
59e7fd478e
Sort fixtures by scope when determining fixture closure
...
Fix #2405
2018-03-20 20:10:53 -03:00
Bruno Oliveira
d03e38941b
Merge pull request #3295 from brianmaissy/feature/last-failed-no-failures-behavior
...
implemented --last-failed-no-failures
2018-03-20 19:17:25 -03:00
Jeffrey Rackauckas
c1d73bb535
Modifying changelog to reflect new changes for 3245
2018-03-18 21:27:48 -07:00
Ronny Pfannschmidt
f61d0525a5
Merge pull request #3318 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-03-17 09:40:32 +01:00
Bruno Oliveira
1fff81e21d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-03-16 18:15:28 -03:00
Jason R. Coombs
965a030564
Add changelog. Ref #3314 .
2018-03-15 21:31:12 -04:00
Bruno Oliveira
fbcf1a90c9
Merge pull request #3193 from pytest-dev/ref-docs
...
Reference docs
2018-03-15 12:04:34 -03:00
Tadeu Manoel
c34dde7a3f
Add support for pytest.approx comparisons between array and scalar
2018-03-14 15:47:21 -03:00
Tareq Alayan
7e53f9432c
issue #3308 : fix example in documentation
...
https://github.com/pytest-dev/pytest/issues/3308
2018-03-14 15:44:43 +02:00
Bruno Oliveira
cbb2c55dea
Merge pull request #3304 from RonnyPfannschmidt/cmdoptions-removal
...
remove CmdOptions since we can use argparse.Namespace()
2018-03-13 17:48:21 -03:00
Bruno Oliveira
9517c3a2aa
Suppress ``IOError`` when closing the temporary file used for capturing streams in Python 2.7.
...
Fix #2370
2018-03-13 17:41:42 -03:00
Ronny Pfannschmidt
87f2003245
remove CmdOptions since we can use argparse.Namespace()
2018-03-13 18:13:56 +01:00
Ronny Pfannschmidt
37a52607c2
unify cli verbosity handling
...
based on https://github.com/pytest-dev/pytest/issues/3294#issuecomment-372190084
we really shouldnt have N options we post mortem hack together to determine verbosity
this change starts by unifying the data, we still need to handle deprecation/removal of config.quiet
2018-03-13 07:05:22 +01:00
Bruno Oliveira
f8791c9246
Merge pull request #3292 from RonnyPfannschmidt/exception-attrs
...
internal refactor port exc FOrmattedExcinfo to attrs, remove old code
2018-03-12 20:54:52 -03:00
Kostis Anagnostopoulos
02bec7a3bb
Add changelog & myself (ankostis) to authors
2018-03-13 01:46:44 +02:00
Bruno Oliveira
0302622310
Improve CHANGELOG entry a bit
2018-03-12 18:22:12 -03:00
Brian Maissy
d2e533b8a3
implemented --last-failed-no-failures
2018-03-10 22:45:45 +02:00
Brian Maissy
54b15f5826
deprecated pytest_plugins in non-top-level conftest
2018-03-10 21:20:12 +02:00
Bruno Oliveira
d2dbbd4caa
Add CHANGELOG entry
2018-03-09 17:46:44 -03:00
Ronny Pfannschmidt
50e682d2db
add changelog
2018-03-09 11:06:26 +01:00
Bruno Oliveira
ed8b1efc16
Add a CHANGELOG entry for the reference docs
...
Fix #1713
2018-03-06 20:41:20 -03:00
Jeffrey Rackauckas
e42fe5f0f9
Add doc to norecursedirs in tox.ini
2018-03-05 19:35:41 -08:00
Bruno Oliveira
ade7ad25c7
Merge remote-tracking branch 'upstream/master' into features
2018-03-05 19:48:25 -03:00
Bruno Oliveira
fac8208e8f
Preparing release version 3.4.2
2018-03-04 19:37:49 +00:00
Bruno Oliveira
25399da904
Reintroduce more_itertools dependency
...
Reintroduce more_itertools that was added in #3265 , now in the features branch
2018-03-04 10:59:46 -03:00
Bruno Oliveira
54884b8c87
Merge branch 'revert-more_itertools-master' into introduce-more_itertools
2018-03-04 10:58:52 -03:00
Bruno Oliveira
65534682aa
Revert introduction of more_itertools
...
This was merged on master but really should be on features: we should not
add new dependencies in bug-fix releases
This reverts commits:
* cfaf3600c1
* 14a9b1ec83
2018-03-04 10:56:24 -03:00
Bruno Oliveira
e980fbbe39
Merge pull request #3277 from maiksensi/bug/3241-check-if-dir-exists
...
Use `isdir` instead of `exists`
2018-03-04 10:49:25 -03:00
Bruno Oliveira
9a2e0c061d
Update 3241.bugfix.rst
2018-03-03 23:14:57 -03:00
Maik Figura
056d9e8dc2
Use `isdir` instead of `exists`
2018-03-04 00:55:04 +01:00
Maik Figura
46f5d7a1bb
Add filetype to changelog fragment
2018-03-04 00:52:27 +01:00
Maik Figura
30453057e8
Add logging plugin to plugins list
2018-03-03 23:50:13 +01:00
Bruno Oliveira
08831396a5
Merge pull request #3218 from feuillemorte/3034-new-tests-first
...
#3034 Added new option "--new-first"
2018-03-02 18:33:25 -03:00
feuillemorte
a506052d12
#3268 Added changelog file
2018-03-02 10:54:31 +03:00
Ronny Pfannschmidt
3b757b1b8c
Merge pull request #3265 from pytest-dev/feature/always-iterable-refactor
...
Consolidate behavior by using filterfalse and always_iterable
2018-03-01 08:51:44 +01:00
Bruno Oliveira
14a9b1ec83
Add CHANGELOG for #3265
2018-02-28 17:31:11 -03:00
Bruno Oliveira
ea854086e1
Rename 3236.trivial.rst to 3236.feature.rst
2018-02-27 22:46:12 -03:00
Bruno Oliveira
a2a64546eb
Merge remote-tracking branch 'upstream/master' into features
2018-02-27 16:43:45 -03:00
Bruno Oliveira
9fcbf57163
Merge pull request #3267 from feuillemorte/3260-fix-pytest-section
...
#3260 fix pytest section
2018-02-27 16:41:45 -03:00
Bruno Oliveira
dab96cbf27
Merge pull request #3255 from nicoddemus/post-summary
...
Show "short test summary info" after tracebacks and warnings
2018-02-27 16:36:13 -03:00
Bruno Oliveira
1fb2457018
Adjust CHANGELOG
2018-02-27 14:58:27 -03:00
feuillemorte
eadd15fe45
#3260 Added changelog file
2018-02-27 19:05:53 +03:00
Bruno Oliveira
a968c0fa05
Merge pull request #3264 from jeffreyrack/3236-skipif-using-platform
...
#3236 Use platform module in pytest.mark
2018-02-27 09:44:52 -03:00
Bruno Oliveira
5cb72b6188
Merge pull request #3257 from will133/continue-on-failure
...
Continue on doctest failure
2018-02-27 07:45:41 -03:00
Bruno Oliveira
20085542e2
Merge pull request #3263 from feuillemorte/3203-remove-statistic-indicator
...
#3203 Remove progress when no-capture
2018-02-27 07:33:45 -03:00
Bruno Oliveira
9479bda392
Adjust the CHANGELOG
2018-02-27 07:03:20 -03:00
Jeffrey Rackauckas
f6ad25928e
Fixing grammar.
2018-02-26 19:15:10 -08:00
Bruno Oliveira
4e405dd9f9
Show "short test summary info" after tracebacks and warnings
2018-02-26 21:12:33 -03:00
Bruno Oliveira
d196ab45d3
Change 1642 entry from "trivial" to "feature"
2018-02-26 19:56:53 -03:00
Bruno Oliveira
188df8100c
Small adjustment to the CHANGELOG
2018-02-26 17:14:28 -03:00
Bruno Oliveira
e8f9a91056
Small adjustment to CHANGELOG entry
2018-02-26 17:10:59 -03:00
feuillemorte
6200920dc3
#3203 Added changelog file
2018-02-26 17:24:16 +03:00
Jeffrey Rackauckas
307cd6630f
Add the ability to use platform in pytest.mark.skipif
2018-02-25 22:38:25 -08:00
joshm91
6166151ee4
Fix minor typo in fixture.rst
2018-02-24 19:12:40 +00:00
Ronny Pfannschmidt
da3f4045e7
Merge pull request #3250 from RonnyPfannschmidt/mark-package
...
Mark package
2018-02-24 18:19:27 +01:00
feuillemorte
c032d4c5d5
Merge branch 'features' of https://github.com/feuillemorte/pytest into 3034-new-tests-first
2018-02-23 23:55:28 +03:00
feuillemorte
e865f2a235
#3034 Fix comments
2018-02-23 22:49:17 +03:00
William Lee
8d90591b33
Merge remote-tracking branch 'upstream/features' into continue-on-failure
2018-02-22 21:01:31 -06:00
William Lee
14cd1e9d94
Added the feature in change log for #3149
2018-02-22 21:01:19 -06:00
Bruno Oliveira
bedceaacc4
Merge pull request #3249 from a-feld/request-fixture-reference-cycle
...
Fix PseudoFixtureDef reference cycle.
2018-02-22 19:23:56 -03:00
Bruno Oliveira
9959164c9a
Add CHANGELOG entry for #3250
2018-02-22 18:55:25 -03:00
Allan Feldman
7536e949b1
Add changelog entry.
2018-02-21 22:42:44 -08:00
Ronny Pfannschmidt
54e63b7dd5
Merge pull request #2770 from HPENetworking/master
...
Make record_xml_property generic and compatible with xdist and markers.
2018-02-22 07:38:55 +01:00
Ronny Pfannschmidt
264e455410
Merge pull request #3248 from durocher/master
...
Fix approx default tolerances for Decimal
2018-02-22 07:35:56 +01:00
Bruno Oliveira
147b43f832
Small changelog tweak
2018-02-21 20:31:33 -03:00
Bruno Oliveira
7336dbb979
Merge pull request #3246 from RonnyPfannschmidt/remove-addcall-in-tests
...
remove addcall in the terminal tests
2018-02-21 19:42:53 -03:00
mike
6e14585ca2
Fix approx default tolerances for Decimal
2018-02-21 23:08:23 +01:00
Bruno Oliveira
d838193d2d
Add note about deprecating record_xml_property
...
Also make record_xml_property return record_property directly
2018-02-21 17:45:52 -03:00
Bruno Oliveira
d844ad18c2
Fix formatting of CHANGELOG entry
2018-02-21 15:40:25 -03:00
Ronny Pfannschmidt
3d4d0a2614
remove addcall in the terminal tests
2018-02-21 18:56:20 +01:00
Bruno Oliveira
7a62619a75
Merge remote-tracking branch 'upstream/master' into features
2018-02-21 10:39:55 -03:00
Bruno Oliveira
2a99e5dd2a
Delete changelog entries for 3.4.1 release
...
Unfortunately due to hawkowl/towncrier#99 those news fragments were
not deleted at the time of CHANGELOG generation.
2018-02-20 23:45:21 -03:00
Carlos Jenkins
8b49ddfa58
Renamed the fixture record_xml_property to record_property and adapted logic so that the properties are passed to the TestReport object and thus allow compatibility with pytest-xdist.
2018-02-20 15:46:26 -06:00
Bruno Oliveira
053fc118b7
Merge pull request #3199 from nicoddemus/publish-tag-3060
...
Implement deploying to PyPI by pushing a tag
2018-02-19 22:34:35 -03:00
Bruno Oliveira
97bb6abcfa
Merge pull request #3234 from thisch/showcapture_log_support
...
Add captured-log support to --show-capture
2018-02-19 20:46:50 -03:00
Thomas Hisch
51ece00923
Add captured-log support to --show-capture
...
Fixes : #3233
2018-02-18 20:18:37 +01:00
Bruno Oliveira
b486e1294b
Merge pull request #3222 from The-Compiler/match-msg
...
Remove "matching '...'" part from the pytest.raises message
2018-02-17 21:18:05 -02:00
Bruno Oliveira
3bc8b50a0d
Merge pull request #3228 from thisch/update_attr
...
Update minimal attrs library to v17.4.0
2018-02-17 20:19:07 -02:00
Bruno Oliveira
81fa547fa8
Add CHANGELOG entry about changed attrs req
2018-02-17 20:18:32 -02:00
Bruno Oliveira
9d879bee36
Merge pull request #3215 from pytest-dev/bugfix/985/disable-output-capturing-in-doctest
...
Disable output capturing in doctest
2018-02-17 18:39:32 -02:00
Brian Maissy
069f32a8c4
print captured logs before entering pdb
2018-02-17 20:32:49 +02:00
Bruno Oliveira
0f6879bf5e
Small update to changelog/README.rst
2018-02-17 10:20:41 -02:00
Bruno Oliveira
bfe2cbe875
Implement publishing to PyPI by pushing a tag
...
Fix #3060
2018-02-17 10:13:25 -02:00
Bruno Oliveira
69d608aec3
Merge remote-tracking branch 'upstream/master' into merge-upstream
2018-02-17 09:38:06 -02:00
Bruno Oliveira
fa8354e872
Merge pull request #3213 from thisch/collection_deselection
...
Show deselection count before tests are executed
2018-02-17 09:03:26 -02:00
Bruno Oliveira
00d3001138
Merge pull request #3188 from s0undt3ch/issues/3184
...
Don't traceback on unkown sections.
2018-02-17 09:02:44 -02:00
Jordan Speicher
774c539f1a
Add --deselect command line option
...
Fixes #3198
2018-02-16 08:17:37 -06:00
Bruno Oliveira
df2f019997
Slight rewording in the CHANGELOG
2018-02-15 19:45:05 -02:00
Bruno Oliveira
6bc45d158d
Merge pull request #3186 from brianmaissy/bugfix/print_captured_stdout_before_entering_pdb
...
Added printing of captured stdout before entering pdb
2018-02-15 19:38:23 -02:00
Florian Bruhin
3cbf0c8ec0
Raise unexpected exceptions with pytest.raises() using match=
2018-02-15 12:11:56 +01:00
Florian Bruhin
9849022eb2
Remove "matching '...'" part from the pytest.raises message
...
When a test with pytest.raises(ValueError, match='foo') doesn't raise, the
following error is printed:
Failed: DID NOT RAISE <class 'ValueError'> matching 'foo'
This error message is confusing as it implies a ValueError was raised, but the
message wasn't matching 'foo'.
I first considered rewording it somehow to preserve the match pattern in it, but
I don't think that's worthwhile as the pattern should usually be apparent from
the stacktrace anyways (hard-coded, as parametrization, or with --showlocals for
more sophisticated cases).
2018-02-14 19:20:00 +01:00
Thomas Hisch
6496131b79
Show deselection count before tests are exectued
...
Fixes #1527
2018-02-13 22:27:02 +01:00
feuillemorte
dff0500114
#3034 Added new option "--new-first"
2018-02-13 22:49:28 +03:00
Jason R. Coombs
ce1872e7e8
Merge branch 'master' into bugfix/985/disable-output-capturing-in-doctest
2018-02-13 12:33:07 -05:00
Jason R. Coombs
d845af7b24
Add changelog. Ref #985 .
2018-02-13 12:32:00 -05:00
Brian Maissy
7656fc8320
Added printing of captured stdout and stderr before entering pdb
2018-02-12 23:17:51 +02:00
Marcin Bachry
b6166dccb4
Fix mock patchings detection when both mock and unittest.mock are present
2018-02-12 20:29:37 +01:00
Bruno Oliveira
ffee213c85
Update and rename 3202.trivial.rst to 3202.doc.rst
2018-02-09 22:51:15 -02:00
Andy Freeland
e5b527d0e3
Add Sphinx parameter docs for `match` and `message` args to `pytest.raises()`
2018-02-09 16:28:17 -08:00
Bruno Oliveira
063e2da967
Merge pull request #3176 from feuillemorte/1478_no_stdout_option
...
#1478 Added --no-stdout option
2018-02-09 18:36:36 -02:00
Bruno Oliveira
c04e248de5
Rename 3161.bugfix to 3161.bugfix.rst
2018-02-09 14:06:24 -02:00
Florian Bruhin
3685c1bc01
Merge pull request #3192 from nicoddemus/pr-template
...
Add changelog/README.rst and streamline our PR template text
2018-02-08 19:20:54 +01:00
feuillemorte
71367881ed
#1478 Added --show-capture=both option (fix comments)
2018-02-08 16:21:22 +03:00
Bruno Oliveira
eea169e515
Code review suggestions
2018-02-08 08:03:14 -02:00
Pedro Algarvio
0b71255dda
Expose `log_cli` as a CLI parser option.
2018-02-08 09:42:53 +00:00
Bruno Oliveira
ce0a9aadec
Merge pull request #3127 from feuillemorte/1642-add-rootdir-option
...
#1642 add rootdir option
2018-02-07 18:18:59 -02:00
Bruno Oliveira
f72182977d
Merge pull request #3183 from cheezman34/master
...
Fix ordering of tests to minimize fixture creating
2018-02-07 18:15:41 -02:00
Bruno Oliveira
ed12cf3fb3
Merge pull request #3189 from s0undt3ch/feature/logstart-logfinish
...
Additionally handle logstart and logfinish hooks
2018-02-07 18:09:45 -02:00
Bruno Oliveira
40d0ade2d9
Add changelog/README.rst and streamline our PR template text
...
This streamlines the PR template text and adds a more in-depth explanation
about how the changelog entries work because this topic is a common source of
confusion:
- How to name the files.
- Which formatting to use (people in general assume it is Markdown).
- Recommend adding `.rst` extension to changelog files to help with the
above (`towncrier` doesn't care).
This was heavily inspired by the excellent python-trio/trio docs.
2018-02-06 22:20:39 -02:00
feuillemorte
1a650a9eb9
#1478 Added --show-capture option
2018-02-06 23:38:51 +03:00