Tim Strazny
|
846d91fb95
|
Follow Ronny's advice and use ``type`` in ``base_type``.
|
2018-04-06 16:23:04 +02:00 |
Tim Strazny
|
0cd74dc324
|
Ensure object is class before calling issubclass.
|
2018-04-06 14:40:30 +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 |
Ronny Pfannschmidt
|
9326759a63
|
Merge pull request #3357 from nicoddemus/session-hooks-ref
Add reference docs for pytest_sessionstart/finish and update their docstrings
|
2018-04-03 07:08:47 +02:00 |
Ronny Pfannschmidt
|
211f3c47b5
|
record_property is no longer experimental
|
2018-04-01 15:39:43 +02:00 |
Bruno Oliveira
|
3fc2c94b5e
|
Switch imports based on python versions, my bad
|
2018-03-29 23:15:03 -03:00 |
Bruno Oliveira
|
daf1de0fed
|
Add reference docs for pytest_sessionstart/finish and update their docstrings
|
2018-03-29 19:48:48 -03:00 |
Bruno Oliveira
|
8ca9321940
|
Move compatibility imports to compat.py and fix linting
|
2018-03-29 19:02:35 -03:00 |
Irmen de Jong
|
faded25ee8
|
chage collections.abc import to fix deprecation warnings on python 3.7
|
2018-03-29 20:02:00 +02:00 |
Bruno Oliveira
|
0a3cd881f6
|
Add docs about using pytest.param in parametrized fixtures
|
2018-03-28 19:35:10 -03:00 |
Bruno Oliveira
|
bfe773bfc8
|
Use shorter 'if kwargs' check as requested during review
|
2018-03-28 07:30:14 -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 |
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
|
4e717eb626
|
Remove `terminal.flatten` function in favor of collapse from more_itertools
|
2018-03-21 20:20:46 -03: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 |
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 |
Tadeu Manoel
|
a754f00ae7
|
Improve `numpy.approx` array-scalar comparisons
So that `self.expected` in ApproxNumpy is always a numpy array.
|
2018-03-16 09:01:18 -03:00 |
Bruno Oliveira
|
17468fc99c
|
Fix caplog docstring: indentation caused errors during docs build
|
2018-03-16 00:04:28 -03:00 |
Jason R. Coombs
|
b66019202e
|
Fix test failure on Python 2. Ref #3314.
|
2018-03-15 21:33:58 -04:00 |
Jason R. Coombs
|
2f47624b19
|
Allow DontReadFromInput to produce iterator without error. Fixes #3314.
|
2018-03-15 21:26:40 -04:00 |
Tadeu Manoel
|
42c84f4f30
|
Add fixes to `numpy.approx` array-scalar comparisons (from PR suggestions)
|
2018-03-15 13:41:58 -03: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
|
97f9a8bfdf
|
Add fixes to make `numpy.approx` array-scalar comparisons work with older numpy versions
|
2018-03-14 17:10:35 -03:00 |
Tadeu Manoel
|
161d4e5fe4
|
Add support for pytest.approx comparisons between scalar and array (inverted order)
|
2018-03-14 16:29:04 -03:00 |
Tadeu Manoel
|
c34dde7a3f
|
Add support for pytest.approx comparisons between array and scalar
|
2018-03-14 15:47:21 -03: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 |
Thomas Hisch
|
5e92644f94
|
Properly reset LogCaptureHandler in caplog
Closes #3297
|
2018-03-13 00:36:51 +02:00 |
Julien Palard
|
e71d907d34
|
Typo in example, os.getcwd does not take any parameter.
|
2018-03-12 15:19:26 +01: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
|
5f9bc557ea
|
Fix linting
|
2018-03-09 17:44:39 -03:00 |
Ronny Pfannschmidt
|
543bac925a
|
fix if-chain in _code.source
|
2018-03-09 16:50:46 +01:00 |
Ronny Pfannschmidt
|
2fe56b97c9
|
remove unused assertion parameter in source and minor cleanups
|
2018-03-09 15:03:57 +01:00 |
Ronny Pfannschmidt
|
3284d575e8
|
readline generator no longer needs to yield empty strings
|
2018-03-09 14:58:11 +01:00 |
Ronny Pfannschmidt
|
a406ca14d6
|
remove getstatementrange_old - its documented for python <= 2.4
|
2018-03-09 14:48:28 +01:00 |
Ronny Pfannschmidt
|
2e5337f5e3
|
makr strutures: lint fixings, removal of shadowing
|
2018-03-09 14:39:54 +01:00 |
Ronny Pfannschmidt
|
74884b1901
|
turn FormattedExcinfo into a attrs class
|
2018-03-09 14:21:56 +01:00 |
Ronny Pfannschmidt
|
c67f45b716
|
simplify a few imports in _pytest._code.source
|
2018-03-09 12:06:50 +01:00 |
Ronny Pfannschmidt
|
5e5935759e
|
make nodeids precalculated, there is no sane reason to commpute lazyly
|
2018-03-09 10:52:59 +01:00 |
Ronny Pfannschmidt
|
45b6b7df92
|
move nodekeywords to the mark structures
|
2018-03-09 10:23:18 +01:00 |
Ronny Pfannschmidt
|
c9b9d796e6
|
remove dead code
|
2018-03-09 10:22:43 +01:00 |