[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-11 Thread Ilia Kurenkov

Ilia Kurenkov added the comment:

Bump :)

Let's close this one, guys!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-03 Thread Ilia Kurenkov

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-02 Thread Ilia Kurenkov

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-05-10 Thread Ilia Kurenkov

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1818] Add named tuple reader to CSV module

2015-05-10 Thread Ilia Kurenkov

Ilia Kurenkov added the comment:

Friendly reminder that this exists.

I know everyone's busy and this is marked as low-priority, but I'm gonna keep 
bumping this till we add a solution :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-04-20 Thread Ilia Kurenkov

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1818] Add named tuple reader to CSV module

2015-04-19 Thread Ilia Kurenkov

Ilia Kurenkov added the comment:

As my contribution during the sprints at PyCon 2015, I've tweaked Jervis's 
patch a little and updated the tests/docs to work with Python 3.5.

My only real change was placing the basic reader object inside a generator 
expression that filters out empty lines. Being partial to functional 
programming I find this removes some of the code clutter in __next__(), letting 
that method focus on turning rows into tuples.

Hopefully this will rekindle the discussion!

--
nosy: +copper-head
versions: +Python 3.5
Added file: http://bugs.python.org/file39139/1818_py35.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-04-13 Thread Ilia Kurenkov

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-04-13 Thread Ilia Kurenkov

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
http://bugs.python.org/issue20362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-04-13 Thread Ilia Kurenkov

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 the changes made in the patch. Namely, the fact 
that we're strictly sticking to longMessage=False means the custom message 
passed by the user (in this particular case that's Message) is be the *only* 
thing sent to AssertionError. Thus checking for the presence of kot in this 
error's args doesn't seem to make much sense and will simply keep breaking our 
tests.
Now it goes without saying that I may have missed something, please let me know 
if that's the case.

#2
For some reason I got the impression that the tests should be using the newer 
method names, but since using the old ones didn't break them on my machine, 
I've updated the patch file accordingly. I'll upload it pending your feedback 
regarding #1.

Glad to help!
Ilia.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com