Ronny Pfannschmidt
fbf01bd31a
enhance skip except clause by directly using the Skipped exception
2018-03-06 10:29:26 +01: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
Maik Figura
056d9e8dc2
Use `isdir` instead of `exists`
2018-03-04 00:55:04 +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
f501d0021c
#3268 Fix warning variable
2018-03-02 11:28:30 +03:00
feuillemorte
99aab2c3f5
#3268 Added deprecation to custom configs
2018-03-02 10:52:38 +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
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
feuillemorte
92219e576b
#3260 Remove deprecation
2018-02-27 20:00:46 +03:00
feuillemorte
143ac5af99
#3260 Fix config.py for py27
2018-02-27 19:26:35 +03:00
feuillemorte
3f7223af44
#3260 Fix pytest section in setup ini file
2018-02-27 19:02:49 +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
94050a8aaf
Remove config paramter from pytest_terminal_summary as discussed during review
2018-02-27 07:26:25 -03:00
Jason R. Coombs
cfaf3600c1
Consolidate behavior by using filterfalse and always_iterable
2018-02-27 03:38:56 -05:00
Bruno Oliveira
4e405dd9f9
Show "short test summary info" after tracebacks and warnings
2018-02-26 21:12:33 -03:00
feuillemorte
46c5d5355e
#3203 Remove progress when no-capture
2018-02-26 17:19:58 +03:00
Jeffrey Rackauckas
307cd6630f
Add the ability to use platform in pytest.mark.skipif
2018-02-25 22:38:25 -08:00
Ronny Pfannschmidt
da3f4045e7
Merge pull request #3250 from RonnyPfannschmidt/mark-package
...
Mark package
2018-02-24 18:19:27 +01:00
William Lee
f4cc45bb41
Turn on the continue on failure only when the flag is given
2018-02-23 22:31:11 -06:00
William Lee
7f2dd74ae9
Fixed test for the continue run
2018-02-23 21:20:14 -06: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
fbc45be83f
Fixed #3149 where doctest does not continue to run when there is a failure
2018-02-22 21:00:54 -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
60358b6db8
Fix linting
2018-02-22 18:49:20 -03:00
Ronny Pfannschmidt
2cd69cf632
sort out import misstake
2018-02-22 15:18:17 +01:00
Ronny Pfannschmidt
935dd3aaa5
simplify complexyity in mark plugin modifyitems
2018-02-22 15:11:55 +01:00
Ronny Pfannschmidt
c8d24739ed
move current mark datastructures to own module
2018-02-22 14:43:01 +01:00
Ronny Pfannschmidt
be2e3a973e
remove complexity from match_keywords
2018-02-22 14:30:32 +01:00
Ronny Pfannschmidt
cef0423b27
move the keyword/mark matching to the "legacy" module
2018-02-22 14:26:22 +01:00
Ronny Pfannschmidt
25a3e9296a
reduce the complexity of skipping terminal summary
2018-02-22 14:18:49 +01:00
Ronny Pfannschmidt
cf40c0743c
move mark evaluator into mark package
2018-02-22 14:05:10 +01:00
Ronny Pfannschmidt
c31e1a3797
turn mark into a package
2018-02-22 13:36:33 +01:00
Allan Feldman
48548767fc
Use a frozen attr class for PseudoFixtureDef.
2018-02-21 23:15:39 -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
Allan Feldman
75f11f0b65
Fix reference cycle caused by PseudoFixtureDef.
...
Python types have reference cycles to themselves when they are created. This is
partially caused by descriptors which get / set values from the __dict__
attribute for getattr / setattr on classes.
This is not normally an issue since types tend to remain referenced for the
lifetime of the Python process (and thus never become garbage).
However, in the case of PseudoFixtureDef, the class is generated in
_get_active_fixturedef and later discarded when pytest_fixture_setup returns.
As a result, the generated PseudoFixtureDef type becomes garbage.
This is not really a performance issue but it can lead to some problems when
making tests and assertions about garbage when using pytest.
This garbage creation problem can be rectified by returning a namedtuple
instance which is functionally the same. In the modified code, the namedtuple
is allocated / deallocated using reference counting rather than having to use
the garbage collector.
2018-02-21 21:40:54 -08:00
mike
6e14585ca2
Fix approx default tolerances for Decimal
2018-02-21 23:08:23 +01:00
Bruno Oliveira
567b1ea7a1
Move user_properties to the end of parameter list for backward compatibility
2018-02-21 17:56:49 -03: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
7a62619a75
Merge remote-tracking branch 'upstream/master' into features
2018-02-21 10:39:55 -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
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