Skip to content

Commit 8b0b715

Browse files
committed
Fix glitches of original patch of disable-test-id-escaping
1 parent cf6e2ce commit 8b0b715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

src/_pytest/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def _find_parametrized_scope(argnames, arg2fixturedefs, indirect):
11631163
return "function"
11641164

11651165

1166-
def _disable_escaping(val, config=None):
1166+
def _ascii_escaped_by_config(val, config):
11671167
if config is None:
11681168
escape_option = False
11691169
else:
@@ -1194,7 +1194,7 @@ def _idval(val, argname, idx, idfn, item, config):
11941194
return hook_id
11951195

11961196
if isinstance(val, STRING_TYPES):
1197-
return _disable_escaping(val)
1197+
return _ascii_escaped_by_config(val, config)
11981198
elif isinstance(val, (float, int, bool, NoneType)):
11991199
return str(val)
12001200
elif isinstance(val, REGEX_TYPE):

0 commit comments

Comments
 (0)