Skip to content

Commit e6ff01a

Browse files
committed
CR fixes
1 parent 8ddbca3 commit e6ff01a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
* Add ``build/`` and ``dist/`` to the default ``--norecursedirs`` list. Thanks
6767
`@mikofski`_ for the report and `@tomviner`_ for the PR (`#1544`_).
6868

69-
* pytest.raises accepts a custom message to raise when no exception accord.
70-
Thanks `@palaviv`_ for the PR.
69+
* pytest.raises accepts a custom message to raise when no exception occurred.
70+
Thanks `@palaviv`_ for the complete PR (`#1616`_).
7171

7272
.. _@milliams: https://github.com/milliams
7373
.. _@csaftoiu: https://github.com/csaftoiu
@@ -92,6 +92,7 @@
9292
.. _#1520: https://github.com/pytest-dev/pytest/pull/1520
9393
.. _#372: https://github.com/pytest-dev/pytest/issues/372
9494
.. _#1544: https://github.com/pytest-dev/pytest/issues/1544
95+
.. _#1616: https://github.com/pytest-dev/pytest/pull/1616
9596

9697

9798
**Bug Fixes**

testing/python/raises.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_no_raise_message(self):
8080
with pytest.raises(ValueError):
8181
pass
8282
except pytest.raises.Exception as e:
83-
e.msg == "DID NOT RAISE {0}".format(repr(ValueError))
83+
assert e.msg == "DID NOT RAISE {0}".format(repr(ValueError))
8484

8585
def test_costum_raise_message(self):
8686
message = "TEST_MESSAGE"
@@ -92,4 +92,4 @@ def test_costum_raise_message(self):
9292
with pytest.raises(ValueError, message=message):
9393
pass
9494
except pytest.raises.Exception as e:
95-
e.msg == message
95+
assert e.msg == message

0 commit comments

Comments
 (0)