test_ok2/changelog
Daniel Hahler 786d839db1 cacheprovider: set: use json.dumps + write
``json.dump`` is slower since it iterates over chunks [1].

For 100 ``cache.set`` calls this saved ~0.5s (2.5s => 2s), using a dict
with 1500 entries, and an encoded size of 500kb.

Python 3.7.4.

1: https://github.com/blueyed/cpython/blob/1c2e81ed00/Lib/json/__init__.py#L177-L180
2019-11-16 17:40:56 +01:00
..
2548.bugfix.rst terminal: fix line offset with skip reports 2019-10-29 13:11:02 +01:00
4488.feature.rst Introduce --report-log option 2019-10-30 09:43:33 -03:00
4730.feature.rst Support sys.pycache_prefix on py38 2019-10-26 10:17:21 -03:00
4901.trivial.rst Show the mnemonic of pytest.ExitCode in RunResult's repr 2019-10-23 09:16:02 -03:00
5061.improvement.rst Change #5061 changelog to 'improvement' 2019-10-23 21:27:07 -03:00
5515.feature.rst Add log-auto-indent option to control multiline formatting 2019-10-25 11:31:33 -04:00
5630.improvement.rst Add CHANGELOG for #5630 2019-10-22 19:43:42 -03:00
5914.feature.rst Introduce no_fnmatch_line/no_re_match_line in pytester 2019-10-06 18:05:24 -03:00
5924.improvement.rst Change 5924 and 5936 changelog entries to improvement [ci skip] 2019-10-26 13:02:47 -03:00
5936.improvement.rst Change 5924 and 5936 changelog entries to improvement [ci skip] 2019-10-26 13:02:47 -03:00
5990.improvement.rst Fix plurality mismatch for and in pytest terminal summary 2019-10-27 15:16:24 +00:00
6008.improvement.rst Make InvocationParams.args a tuple 2019-10-19 16:42:58 -03:00
6023.improvement.rst pytest.main: return ExitCode 2019-10-23 04:33:05 +02:00
6026.improvement.rst pytester: align prefixes 2019-10-24 23:20:12 +02:00
6039.bugfix.rst doctest: pytest_unconfigure: reset RUNNER_CLASS 2019-10-23 03:09:41 +02:00
6047.bugfix.rst saferepr: handle BaseExceptions 2019-11-06 22:08:10 +01:00
6057.feature.rst Add tolerance to complex numbers 2019-10-24 23:44:13 -04:00
6059.improvement.rst terminal: report collection errors as "ERROR" in short summary 2019-10-25 07:03:32 +02:00
6061.feature.rst Removing :py:func: and :ref: from changelog as it's not supported by towncrier 2019-10-30 15:02:18 -04:00
6069.improvement.rst pytester: spawn: do not skip FreeBSD 2019-10-27 00:44:25 +02:00
6074.bugfix.rst changelog 2019-11-07 12:55:01 +01:00
6097.improvement.rst Color percentage indicator according to color of final line 2019-11-04 19:57:07 +00:00
6099.bugfix.rst Fix --trace for parametrized tests 2019-10-31 21:41:33 +00:00
6116.improvement.rst Add --co option to collect-only 2019-11-07 17:50:27 -03:00
6148.improvement.rst Update changelog/6148.improvement.rst 2019-11-07 22:13:03 +01:00
6152.improvement.rst Add CHANGELOG for #6152 2019-11-08 10:52:04 -03:00
6176.improvement.rst pytester: Hookrecorder: improve assertoutcome 2019-11-13 13:48:20 +01:00
6179.deprecation.rst Issue a warning to prepare change of 'junit_family' default value 2019-11-13 19:55:13 -03:00
6181.improvement.rst terminal: report ``session.shouldfail`` reason (``-x``) 2019-11-13 16:18:41 +01:00
6206.improvement.rst cacheprovider: set: use json.dumps + write 2019-11-16 17:40:56 +01:00
README.rst Add new 'improvement' changelog category 2019-08-10 09:33:51 -03:00
_template.rst Update CHANGELOG template to put issue links at the start of entries 2018-07-07 11:02:33 -03:00

README.rst

This directory contains "newsfragments" which are short files that contain a small **ReST**-formatted
text that will be added to the next ``CHANGELOG``.

The ``CHANGELOG`` will be read by users, so this description should be aimed to pytest users
instead of describing internal changes which are only relevant to the developers.

Make sure to use full sentences with correct case and punctuation, for example::

    Fix issue with non-ascii messages from the ``warnings`` module.

Each file should be named like ``<ISSUE>.<TYPE>.rst``, where
``<ISSUE>`` is an issue number, and ``<TYPE>`` is one of:

* ``feature``: new user facing features, like new command-line options and new behavior.
* ``improvement``: improvement of existing functionality, usually without requiring user intervention (for example, new fields being written in ``--junitxml``, improved colors in terminal, etc).
* ``bugfix``: fixes a reported bug.
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
* ``deprecation``: feature deprecation.
* ``removal``: feature removal.
* ``vendor``: changes in packages vendored in pytest.
* ``trivial``: fixing a small typo or internal change that might be noteworthy.

So for example: ``123.feature.rst``, ``456.bugfix.rst``.

If your PR fixes an issue, use that number here. If there is no issue,
then after you submit the PR and get the PR number you can add a
changelog using that instead.

If you are not sure what issue type to use, don't hesitate to ask in your PR.

``towncrier`` preserves multiple paragraphs and formatting (code blocks, lists, and so on), but for entries
other than ``features`` it is usually better to stick to a single paragraph to keep it concise. You can install
``towncrier`` and then run ``towncrier --draft``
if you want to get a preview of how your change will look in the final release notes.