Skip to content

Commit

Permalink
Fixed for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Sep 17, 2021
1 parent 457e9cb commit ce3f837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_cases/common_others.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def make_identifier(name # type: str
if not isinstance(name, string_types):
raise TypeError("name should be a string, found : %r" % name)

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

Expand Down

0 comments on commit ce3f837

Please sign in to comment.