Ronny Pfannschmidt
2612d967f8
Merge pull request #3301 from ankostis/caplog_clear_text
...
Fix #3297 where caplog.clear() did not clear text, just records
2018-03-13 16:39:53 +01:00
Kostis Anagnostopoulos
02bec7a3bb
Add changelog & myself (ankostis) to authors
2018-03-13 01:46:44 +02:00
Thomas Hisch
5e92644f94
Properly reset LogCaptureHandler in caplog
...
Closes #3297
2018-03-13 00:36:51 +02:00
Kostis Anagnostopoulos
68375513f3
Add TC to demonstrate #3297 that caplog.clear() does not clean text
2018-03-13 00:28:47 +02:00
Bruno Oliveira
3909225bf9
Merge pull request #3300 from JulienPalard/typo
...
Typo in example, os.getcwd does not take any parameter.
2018-03-12 12:16:18 -03:00
Julien Palard
e71d907d34
Typo in example, os.getcwd does not take any parameter.
2018-03-12 15:19:26 +01:00
Bruno Oliveira
28df322500
Merge pull request #3283 from jeffreyrack/3245-doc-test-failures
...
3245: Add doc to norecursedirs in tox.ini
2018-03-06 19:22:55 -03:00
Jeffrey Rackauckas
e42fe5f0f9
Add doc to norecursedirs in tox.ini
2018-03-05 19:35:41 -08:00
Bruno Oliveira
27c4de242f
Merge pull request #3281 from nicoddemus/release-3.4.2
...
Preparing release version 3.4.2
2018-03-05 19:42:59 -03:00
Bruno Oliveira
e8368e6c2e
Fix duplicated link in CHANGELOG
2018-03-05 07:26:38 -03:00
Bruno Oliveira
fac8208e8f
Preparing release version 3.4.2
2018-03-04 19:37:49 +00:00
Bruno Oliveira
51abdb80db
Merge pull request #3278 from nicoddemus/revert-more_itertools-master
...
Revert introduction of more_itertools on master
2018-03-04 16:33:31 -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
07e768ab68
Merge pull request #3275 from maiksensi/docs/3209-add-logging-plugin
...
Add logging plugin to plugins list
2018-03-03 23:17:05 -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
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
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
1fb2457018
Adjust CHANGELOG
2018-02-27 14:58:27 -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
409b919fc0
#3260 Added test
2018-02-27 19:16:45 +03:00
feuillemorte
eadd15fe45
#3260 Added changelog file
2018-02-27 19:05:53 +03:00
feuillemorte
3f7223af44
#3260 Fix pytest section in setup ini file
2018-02-27 19:02:49 +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
Jason R. Coombs
cfaf3600c1
Consolidate behavior by using filterfalse and always_iterable
2018-02-27 03:38:56 -05:00
Bruno Oliveira
188df8100c
Small adjustment to the CHANGELOG
2018-02-26 17:14:28 -03:00
Bruno Oliveira
44fa5a77d4
Merge pull request #3262 from nicoddemus/fix-tmpdir-docs
...
Fix broken links in getting-started
2018-02-26 16:49:15 -03:00
feuillemorte
31476c69ab
#3203 Fix tests
2018-02-26 17:39:32 +03:00
feuillemorte
6200920dc3
#3203 Added changelog file
2018-02-26 17:24:16 +03:00
feuillemorte
46c5d5355e
#3203 Remove progress when no-capture
2018-02-26 17:19:58 +03:00
Bruno Oliveira
39024a7536
Fix broken links in getting-started
...
Fix #3256
2018-02-26 10:56:27 -03:00
Florian Bruhin
ae62ced080
Merge pull request #3259 from joshm91/fix_typo
...
Fix minor typo in fixture.rst
2018-02-24 21:37:40 +01:00
joshm91
6166151ee4
Fix minor typo in fixture.rst
2018-02-24 19:12:40 +00: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
1127d519db
Merge pull request #3254 from altendky/patch-1
...
Correct docs to config.pluginmanager.get_plugin()
2018-02-22 19:14:47 -03:00
Kyle Altendorf
b5ac61657a
Correct docs to config.pluginmanager.get_plugin()
...
`getplugin()` is deprecated in favor of `get_plugin()`.
dd97c94035/_pytest/config.py (L261)
2018-02-22 13:48:59 -05:00
Allan Feldman
48548767fc
Use a frozen attr class for PseudoFixtureDef.
2018-02-21 23:15:39 -08:00
Allan Feldman
7536e949b1
Add changelog entry.
2018-02-21 22:42:44 -08:00
Allan Feldman
287c003cfd
Add myself to AUTHORS.
2018-02-21 22:42:44 -08:00
Allan Feldman
aa53e37fa2
Add a test to expose leaked PseudoFixtureDef types.
2018-02-21 22:42:44 -08:00
Ronny Pfannschmidt
dd97c94035
Merge pull request #3240 from codetriage-readme-bot/codetriage-badge
...
Add CodeTriage badge to pytest-dev/pytest
2018-02-22 07:38:31 +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
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
Bruno Oliveira
45d0a21294
Fix README because of code triage badge
2018-02-21 20:42:09 -03:00
Bruno Oliveira
147b43f832
Small changelog tweak
2018-02-21 20:31:33 -03:00