[issue2650] re.escape should not escape underscore

Antoine Pitrou report at bugs.python.org
Wed Jan 12 22:21:06 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> As James said I have written the patch using only regular expressions . 
> This is going to be my first patch . I need help writing the test for it

You will find the current tests in Lib/test/test_re.py.
To execute them, run:
$ ./python -m test.regrtest -v test_re

In this case, there are probably already some tests for re.escape. So you have to check that they are sufficient, and that your patch doesn't make them fail.

----------
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2650>
_______________________________________


More information about the Python-bugs-list mailing list