Merge pull request #1 from 2general/issue-1-unicode-argument
Helper function name generation fails for Unicode argument in test function
This commit is contained in:
@@ -82,7 +82,7 @@ def parameterized(input):
|
|||||||
return parameterized_helper
|
return parameterized_helper
|
||||||
|
|
||||||
def to_safe_name(s):
|
def to_safe_name(s):
|
||||||
return re.sub("[^a-zA-Z0-9_]", "", s)
|
return str(re.sub("[^a-zA-Z0-9_]", "", s))
|
||||||
|
|
||||||
def parameterized_expand_helper(func_name, func, args):
|
def parameterized_expand_helper(func_name, func, args):
|
||||||
def parameterized_expand_helper_helper(self=()):
|
def parameterized_expand_helper_helper(self=()):
|
||||||
|
Reference in New Issue
Block a user