Changes by Robert Collins robe...@robertcollins.net:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
Roundup Robot added the comment:
New changeset 738de9a9a3ea by Robert Collins in branch '3.5':
Issue #20362: Honour TestCase.longMessage correctly in assertRegex.
https://hg.python.org/cpython/rev/738de9a9a3ea
New changeset 977e60f597de by Robert Collins in branch 'default':
Issue #20362:
Robert Collins added the comment:
Thanks for the patch, applied to 3.5 and 3.6.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
Ilia Kurenkov added the comment:
Bump :)
Let's close this one, guys!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Ilia Kurenkov added the comment:
Thanks for the feedback, folks. Adding the updated patch.
--
Added file: http://bugs.python.org/file40115/20362_py35.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
Berker Peksag added the comment:
Sorry for my late response, Ilia. Your reply to my first question looks correct
to me. Please send your updated patch and I'll apply.
--
assignee: - berker.peksag
versions: +Python 3.4, Python 3.6
___
Python tracker
Arnon Yaari added the comment:
* The removal of the 'kot' test is ok. That's what the fix is about. With
longMessage set to False, we should only see the custom message, 'Message', and
not the message about the regex that contains 'kot'.
* Please update the patch for 3.5 to use assertRegex and
Ilia Kurenkov added the comment:
I notice folks have been subscribing to this. Any chance we could review it and
merge? :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
Changes by Torsten Bronger bron...@physik.rwth-aachen.de:
--
nosy: +bronger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Changes by Arnon Yaari wiggi...@gmail.com:
--
nosy: +wiggin15
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Python-bugs-list mailing
Changes by Ned Deily n...@acm.org:
--
nosy: +rbcollins
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Python-bugs-list mailing list
Ilia Kurenkov added the comment:
Hi there!
I was wondering if anyone had a chance to take a look at this :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
Ilia Kurenkov added the comment:
Hi Berker!
I hope all's well on your end. Let me know if you have questions about the
reasoning behind my changes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
Berker Peksag added the comment:
Thanks for the patches, Ilia. The one for 2.7 looks good.
Reviewing 20362_py35.patch:
* Looks almost identical to issue20362.diff except style changes and the two
comments below, right?
* -self.assertIn('kot', e.args[0])
Why did you remove this
Ilia Kurenkov added the comment:
Modified to work with 3.5. Attaching patch file.
--
Added file: http://bugs.python.org/file38960/20362_py35.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
Ilia Kurenkov added the comment:
This fix has been retested with 2.7, I'm uploading the relevant patch files.
--
nosy: +copper-head
Added file: http://bugs.python.org/file38958/20362_py27.patch
___
Python tracker rep...@bugs.python.org
Ilia Kurenkov added the comment:
Thanks for the quick response, Berker! Let me address your comments in the
order you made them.
#1: removing checking for kot in the exception args.
This line was causing the tests to fail, which is how I noticed it. The reason
it fails (I think) is caused by
Berker Peksag added the comment:
I've added missing self._formatMessage() functions to assertRegex and
assertNotRegex asserts.
--
keywords: +patch
nosy: +berker.peksag
stage: needs patch - patch review
versions: -Python 3.3
Added file: http://bugs.python.org/file35274/issue20362.diff
New submission from Dhara:
Various assert methods added in version 2.7 ignore the longMessage attribute:
http://docs.python.org/2.7/library/unittest.html#unittest.TestCase.longMessage
For example when matching regular expressions using
unittest.TestCase.assertRegexpMatches, the following error
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
20 matches
Mail list logo