Replace unsafe characters with "_" in names generated by `@parameterized.expand
`
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
0.3.3 (2014-01-03)
|
||||
* Replace unsafe characters with "_" in names generated by
|
||||
``@parameterized.expand``.
|
||||
|
||||
0.3.2 (2014-01-02)
|
||||
* Add helpful error message when used with old-style classes.
|
||||
|
||||
|
@@ -236,4 +236,4 @@ class parameterized(object):
|
||||
|
||||
@classmethod
|
||||
def to_safe_name(cls, s):
|
||||
return str(re.sub("[^a-zA-Z0-9_]", "", s))
|
||||
return str(re.sub("[^a-zA-Z0-9_]+", "_", s))
|
||||
|
Reference in New Issue
Block a user