Skip to content

Commit ce3f837

Browse files
author
Sylvain MARIE
committed
Fixed for python 2
1 parent 457e9cb commit ce3f837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_cases/common_others.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def make_identifier(name # type: str
555555
if not isinstance(name, string_types):
556556
raise TypeError("name should be a string, found : %r" % name)
557557

558-
if iskeyword(name):
558+
if iskeyword(name) or (not PY3 and name == "None"):
559559
# reserved keywords: add an underscore
560560
name = name + "_"
561561

0 commit comments

Comments
 (0)