Bruno Oliveira
eabe3eed6b
Add docs for the warnings functionality
2017-03-20 23:35:01 -03:00
Bruno Oliveira
fa56114115
Clean up warnings generated by pytest's own suite
2017-03-20 22:13:17 -03:00
Bruno Oliveira
d027f760c0
Avoid displaying the same warning multiple times for an item
2017-03-20 20:40:53 -03:00
Bruno Oliveira
3373e02eae
Add __future__ imports to warnings module
2017-03-20 20:06:01 -03:00
Bruno Oliveira
9f85584656
Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings
2017-03-20 19:59:05 -03:00
Florian Bruhin
de8607deb2
Merge pull request #1921 from RonnyPfannschmidt/marked-value
...
introduce pytest.Marked as holder for marked parameter values
2017-03-20 10:54:12 +01:00
Ronny Pfannschmidt
e8a1b36c82
add changelog
2017-03-20 10:21:47 +01:00
Ronny Pfannschmidt
6cfe087261
Merge pull request #2320 from pawelad/2239/exit-code-docs
...
Added 'Possible exit codes' section to docs (#2239 )
2017-03-20 06:22:23 +01:00
Paweł Adamczak
8b57aaf944
Added 'Paweł Adamczak' to AUTHORS
2017-03-19 18:38:41 +00:00
Paweł Adamczak
d58bc14645
Added 'Possible exit codes' section to docs ( #2239 )
2017-03-19 18:34:43 +00:00
Ronny Pfannschmidt
e368fb4b29
implement pytest.param
...
this allows a clear addition of parameterization parameters that carry along marks
instead of nesting multiple mark objects and destroying the possibility of creating
function valued parameters,
it just folders everything together into one object carrfying parameters, and the marks.
2017-03-17 16:53:43 +01:00
Ronny Pfannschmidt
a122ae85e9
Merge pull request #2316 from nicoddemus/add-future-imports
...
Add __future__ imports to all pytest modules
2017-03-17 13:41:46 +01:00
Bruno Oliveira
4d947077bb
Fix test in py26 that expected a floor division error message
2017-03-16 23:07:03 -03:00
Bruno Oliveira
e5021dc9dc
Replace py.builtin.print_() calls by builtin print() function
2017-03-16 22:46:51 -03:00
Bruno Oliveira
42a5d6bdfa
Add __future__ imports to all pytest modules
...
This prevents silly errors from creeping in Python 2 when testing in Python 3
2017-03-16 22:45:40 -03:00
Bruno Oliveira
7684b3af7b
Recommend using py36 for testing on CONTRIBUTING
2017-03-16 22:20:38 -03:00
Bruno Oliveira
78194093af
Improve warning representation in terminal plugin and fix tests
2017-03-16 21:57:32 -03:00
Bruno Oliveira
be5db6fa22
Capture warnings around the entire runtestprotocol
...
This is necessary for the warnings plugin to play nice with the
recwarn fixture
2017-03-16 21:54:41 -03:00
Bruno Oliveira
0baed781fe
Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings
2017-03-16 20:02:06 -03:00
Bruno Oliveira
337f891d78
Fixed tests
2017-03-16 20:01:47 -03:00
Bruno Oliveira
5482dfe0f3
Merge pull request #2303 from nicoddemus/recwarn-refactor
...
Refactor recwarn to use warnings.catch_warnings instead of custom code
2017-03-15 12:27:31 -03:00
Bruno Oliveira
75ec893d75
Merge pull request #2297 from nicoddemus/init-files-docs
...
Attempt to clarify the confusion regarding __init__ files and unique test names
2017-03-15 10:53:09 -03:00
Bruno Oliveira
76df77418d
Merge pull request #2313 from nicoddemus/DontReadFromInput-exceptions
...
Dont read from input exceptions
2017-03-15 10:51:13 -03:00
Bruno Oliveira
55b891ddd0
Merge pull request #2312 from nicoddemus/merge-master-into-features-post-3.0.7
...
Merge master into features post 3.0.7
2017-03-14 23:26:43 -03:00
Bruno Oliveira
aad4946fb6
Move CHANGELOG entry for #2276 to 3.0.8
2017-03-14 18:58:28 -03:00
Xander Johnson
9062fbb9cc
Add AUTHORS & CHANGELOG
2017-03-14 18:55:58 -03:00
Xander Johnson
dc6890709e
Change ValueError to io.UnsupportedOperation in capture.py. Resolves issue #2276
2017-03-14 18:55:58 -03:00
Bruno Oliveira
272aba98e2
Mention the src layout as recommended practice
2017-03-14 18:39:02 -03:00
Bruno Oliveira
6c9011c12f
Merge branch 'master' into merge-master-into-features-post-3.0.7
2017-03-14 18:10:23 -03:00
Bruno Oliveira
fa15ae7545
Post 3.0.7 release handling
2017-03-14 18:07:44 -03:00
Bruno Oliveira
5056d8cbe8
Merge pull request #2304 from nicoddemus/release-3.0.7
...
Release 3.0.7
2017-03-14 18:03:44 -03:00
Bruno Oliveira
4a9348324d
Add more information to test-layout docs as discussed during PR
2017-03-14 07:59:01 -03:00
Ronny Pfannschmidt
5e52a4dda4
Merge pull request #2307 from nicoddemus/clarify-record-xml-property
...
Clarify that record_xml_property is experimental, not junitxml
2017-03-14 09:39:12 +01:00
Bruno Oliveira
92b49d246e
Clarify that record_xml_property is experimental, not junitxml
...
Related to #2306
2017-03-13 23:04:44 -03:00
Bruno Oliveira
90c934e25e
Include release 3.0.7 announce in index.rst
2017-03-13 18:59:15 -04:00
Bruno Oliveira
3c07072bfd
Fix test_recwarn in Python 3.6
...
No longer test for implementation details of recwarn since warnings.catch_warnings has changed
significantly in 3.6.
2017-03-13 19:52:35 -03:00
Bruno Oliveira
d58780f9a6
Update regendoc
2017-03-13 18:41:20 -04:00
Bruno Oliveira
b1ab2ca963
Bump to version 3.0.7 and update CHANGELOG
2017-03-13 18:37:49 -04:00
Bruno Oliveira
22864b75ee
Refactor recwarn to use warnings.catch_warnings instead of custom code
...
Since we dropped 2.5, we can now use warnings.catch_warnings to do the
"catch warnings" magic for us, simplifying the code a bit.
2017-03-13 19:28:36 -03:00
Bruno Oliveira
d1ea7c8cc8
Merge pull request #2301 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-03-12 12:32:44 -03:00
Bruno Oliveira
1e0cf5ce4d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# AUTHORS
# CHANGELOG.rst
# _pytest/pytester.py
2017-03-10 15:54:05 -03:00
Bruno Oliveira
581857aab6
Fix typo
2017-03-09 20:46:22 -03:00
Bruno Oliveira
841f731707
Attempt to clarify the confusion regarding __init__ files and unique test names
...
Fix #529
2017-03-09 20:41:33 -03:00
Ronny Pfannschmidt
906b40fbb2
Merge pull request #2289 from fbjorn/fix-trailing-whitespace-in-terminal
...
Fix trailing whitespace in terminal output
2017-03-05 22:45:46 +01:00
fbjorn
cee578e327
Fix trailing whitespace in terminal output
2017-03-05 23:20:55 +03:00
Florian Bruhin
29383d477d
Merge pull request #2288 from nodakai/patch-1
...
assert.rst: typographical correction
2017-03-05 18:37:07 +01:00
NODA, Kai
e05ff0338a
assert.rst: typographical correction
2017-03-06 01:01:55 +08:00
Bruno Oliveira
272afa9422
Display node ids and the warnings generated by it
...
The rationale of using node ids is that users can copy/paste it to run a chosen test
2017-03-04 20:53:42 -03:00
Bruno Oliveira
bddb922f7b
Rename internal option to disable_warnings
2017-03-04 16:32:10 -03:00
Bruno Oliveira
de09023e45
Also capture warnings during setup/teardown
2017-03-04 16:15:03 -03:00