pytest2/changelog
Florian Bruhin 9849022eb2 Remove "matching '...'" part from the pytest.raises message
When a test with pytest.raises(ValueError, match='foo') doesn't raise, the
following error is printed:

    Failed: DID NOT RAISE <class 'ValueError'> matching 'foo'

This error message is confusing as it implies a ValueError was raised, but the
message wasn't matching 'foo'.

I first considered rewording it somehow to preserve the match pattern in it, but
I don't think that's worthwhile as the pattern should usually be apparent from
the stacktrace anyways (hard-coded, as parametrization, or with --showlocals for
more sophisticated cases).
2018-02-14 19:20:00 +01:00
..
985.trivial.rst Add changelog/README.rst and streamline our PR template text 2018-02-06 22:20:39 -02:00
1810.bugfix.rst Add changelog/README.rst and streamline our PR template text 2018-02-06 22:20:39 -02:00
3161.bugfix.rst Rename 3161.bugfix to 3161.bugfix.rst 2018-02-09 14:06:24 -02:00
3166.trivial.rst Add changelog/README.rst and streamline our PR template text 2018-02-06 22:20:39 -02:00
3202.doc.rst Update and rename 3202.trivial.rst to 3202.doc.rst 2018-02-09 22:51:15 -02:00
3222.trivial Remove "matching '...'" part from the pytest.raises message 2018-02-14 19:20:00 +01:00
README.rst Code review suggestions 2018-02-08 08:03:14 -02:00
_template.rst Show multiple issue links in CHANGELOG entries 2017-07-26 10:58:06 -07:00

README.rst

This directory contains "newsfragments" which are short 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 contents in doctest text files.*

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.
* ``bugfix``: fixes a reported bug.
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
* ``removal``: feature deprecation or 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.

Note that the ``towncrier`` tool will automatically
reflow your text, so it will work best if you stick to a single paragraph, but multiple sentences and links are OK
and encouraged. 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.