[docs] assertRegexpMatches arguments swapped in docs

Danny Navarro j at dannynavarro.net
Wed Mar 30 16:42:30 CEST 2011


Hi,

I noticed that the ``assertRegexpMatches`` of the unittest module
works by passing first the regex and then the text to be tested.
However in the docs the text comes before the regex.

http://docs.python.org/library/unittest.html#unittest.TestCase.assertRegexpMatches

I'm on 2.7.1, BTW.

Cheers,

-- 
Danny Navarro  |  http://dannynavarro.net


More information about the docs mailing list