Bruno Oliveira
5119abe498
Merge pull request #4683 from nicoddemus/skip-unicode
...
Handle unittest.SkipTest exception with non-ascii characters
2019-01-28 15:50:53 -02:00
Bruno Oliveira
1c5009c3fb
Handle unittest.SkipTest exception with non-ascii characters
...
Fix #4669
2019-01-28 12:50:04 -02:00
Arel Cordero
8a1afe4213
Including note on using nullcontext in Python 3.7+
2019-01-28 13:31:08 +00:00
Arel Cordero
fd4289dae0
Adding `does_not_raise` to documentation only
2019-01-27 16:42:10 +00:00
Arel Cordero
977adf1354
Improving sphinx docs based on feedback
2019-01-27 16:41:23 +00:00
Arel Cordero
c1fe07276c
Adding changelog entries for `does_not_raise`
2019-01-27 16:41:10 +00:00
Arel Cordero
c166b80a8c
Documenting raises/does_not_raise + parametrize
2019-01-27 16:40:49 +00:00
Arel Cordero
afe9fd5ffd
Adds `does_not_raise` context manager
...
Addressing issues #4324 and #1830
2019-01-27 16:40:35 +00:00
Ronny Pfannschmidt
5567c772cd
quick&dirty fix fixture tests that rely on tmppath fixture structure
2019-01-27 14:19:23 +01:00
Ronny Pfannschmidt
c75bd08807
ensure tmp_path is always a realpath
2019-01-27 14:08:43 +01:00
Ronny Pfannschmidt
f7d7555521
fix #4680 - ensure tmpdir and tmp_path are the same
2019-01-27 13:05:34 +01:00
Anthony Sottile
16f8cdac95
Merge pull request #4678 from nicoddemus/raises-docs
...
Improve pytest.raises 'message' deprecation docs
2019-01-26 19:01:21 -08:00
Bruno Oliveira
9905a73ae0
Merge pull request #4511 from jhunkeler/junit-strict
...
Toggle JUnit behavior with INI option
2019-01-24 20:54:32 -02:00
Bruno Oliveira
51dd738b1a
Merge pull request #4673 from kown7/count-tests
...
Count tests
2019-01-24 20:46:29 -02:00
Bruno Oliveira
067f2c6148
Improve pytest.raises 'message' deprecation docs
...
Based on recent discussions in #3974
2019-01-24 20:41:18 -02:00
Kristoffer Nordstroem
e2cd2cd409
vanity commit
2019-01-24 23:18:21 +01:00
Bruno Oliveira
37aab5dd6b
Add CHANGELOG entry for #4660
2019-01-24 20:07:21 -02:00
Bruno Oliveira
7ddfc04793
Merge pull request #4665 from nicoddemus/group-warnings-by-message
...
Group warnings by message instead of by test id
2019-01-24 20:00:27 -02:00
Bruno Oliveira
7b10474fed
Merge pull request #4668 from wimglenn/issues/4667
...
short report summary to use report teststatus data
2019-01-24 19:59:52 -02:00
wim glenn
8cf097635e
Fixed one weird test that creates a class instead of using mocks.. ¯\_(ツ)_/¯
2019-01-24 12:59:36 -06:00
wim glenn
2d18546870
resolving report.when attribute should be reliable now
2019-01-24 11:12:59 -06:00
wim glenn
0f546c4670
pytest_terminal_summary uses result from pytest_report_teststatus hook, rather than hardcoded strings
...
Less hacky way to make XPASS yellow markup. Make sure collect reports still have a "when" attribute.
xfail changed to XFAIL in the test report, for consistency with other outcomes which are all CAPS
2019-01-24 10:17:29 -06:00
Kristoffer Nordstroem
6d38868950
fix tests by adding additional output to expected responses
2019-01-24 00:08:43 +01:00
Kristoffer Nordstroem
8723eb16ea
only print selected if any have been selected
2019-01-24 00:00:29 +01:00
Bruno Oliveira
daf39112e7
Merge pull request #4091 from nicoddemus/setup-methods-as-fixtures-3094
...
Use fixtures to invoke xunit-style fixtures
2019-01-23 19:23:31 -02:00
Bruno Oliveira
9543d1901f
Group warnings by message instead of by test id
2019-01-22 19:42:22 -02:00
Anthony Sottile
ba452dbcf0
Merge pull request #4664 from thisch/stdlibtest
...
Remove stdlib test
2019-01-22 11:28:51 -08:00
Thomas Hisch
a2954578aa
Remove stdlib test
2019-01-22 20:25:51 +01:00
Anthony Sottile
1bcb2f91cc
Merge pull request #4661 from asottile/more_py
...
remove and ban py.io.BytesIO, py.process, py.path.local.sysfind
2019-01-21 22:58:43 -08:00
Anthony Sottile
92a2c1a9c4
remove and ban py.io.BytesIO, py.process, py.path.local.sysfind
2019-01-21 19:51:16 -08:00
Kristoffer Nordstroem
9f86e83478
count selected tests
2019-01-21 23:56:39 +01:00
Anthony Sottile
f01f434311
Merge pull request #4657 from asottile/py_io_saferepr
...
copy saferepr from pylib
2019-01-21 13:25:02 -08:00
Anthony Sottile
0c6ca0da62
Fix usages of py.io.saferepr
2019-01-20 16:36:23 -08:00
Anthony Sottile
095ce2ca7f
Fix linting errors and py references in saferepr.py
2019-01-20 16:36:14 -08:00
Anthony Sottile
dbb6c18c44
copy saferepr from pylib verbatim
...
Copied from b9da2ed6178cd37d4ed6b41f9fa8234dce96973f
2019-01-20 16:30:31 -08:00
Anthony Sottile
653c685667
Merge pull request #4658 from asottile/py_deprecated_builtin
...
Remove and ban use of py.builtin
2019-01-20 14:29:00 -08:00
Anthony Sottile
ec5e279f93
Remove and ban use of py.builtin
2019-01-20 11:59:48 -08:00
Daniel Hahler
e69b1255d7
Improve quitting from pdb
...
Regarding tests: it merges ``test_pdb_interaction``,
``test_pdb_print_captured_stdout``, and
``test_pdb_print_captured_stderr`` into
``test_pdb_print_captured_stdout_and_stderr`` (clarity and performance,
especially since pexpect tests are slow).
2019-01-20 00:34:16 +01:00
Bruno Oliveira
57bf9d6740
Merge pull request #4654 from AuHau/fix/#4653-Fix_tmp_path_symlink_resolution
...
Fixes #4653 - tmp_path provides real path
2019-01-19 09:41:47 -02:00
Bruno Oliveira
677a7d06da
Merge pull request #4655 from RonnyPfannschmidt/fix-4649
...
fix #4649 - also transfer markers to keywordmapping
2019-01-19 09:40:03 -02:00
Ronny Pfannschmidt
f28b834426
fix #4649 - also transfer markers to keywordmapping
...
as it turns out it is distinct from nodekeywords and behaves completely different
2019-01-18 23:18:51 +01:00
Adam Uhlir
04bd147d46
Fixes #4653 - tmp_path provides real path
2019-01-18 12:54:00 -08:00
Bruno Oliveira
6154a5ac02
Merge pull request #4646 from nicoddemus/2.7-deprecation-docs
...
Add docs page about plans for dropping py27 and py34
2019-01-16 12:00:09 -02:00
Bruno Oliveira
1a04e8903a
Merge pull request #4537 from chdsbd/master
...
Bugfix: monkeypatch.delattr handles class descriptors
2019-01-16 08:09:59 -02:00
Joseph Hunkeler
85c5fa9f64
Update changelog
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
8967976443
Ensure xml object is viable before testing family type
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
bcacc40775
Update comment text
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
4ecf29380a
Adds xunit2 version of test_record_attribute
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
aaa7d36bc9
Change family behavior:
...
* "legacy" is no longer a copy of "xunit1"
* Attempts to use "legacy" will redirect to "xunit1"
* record_xml_attribute is not compatible outside of legacy family
* Replace call to method/override raw() with to_xml()
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
8937e39afd
Raise TypeError instead of NotImplementedError if not list type
2019-01-14 22:58:40 -05:00