From 8b0b7156d90ed7e3872f7da2f979665d6d47cf0e Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 24 Mar 2019 20:44:48 +0900 Subject: [PATCH] Fix glitches of original patch of disable-test-id-escaping --- changelog/{2482.feature => 2482.feature.rst} | 0 src/_pytest/python.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename changelog/{2482.feature => 2482.feature.rst} (100%) diff --git a/changelog/2482.feature b/changelog/2482.feature.rst similarity index 100% rename from changelog/2482.feature rename to changelog/2482.feature.rst diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 8532837a5..9e4392264 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1163,7 +1163,7 @@ def _find_parametrized_scope(argnames, arg2fixturedefs, indirect): return "function" -def _disable_escaping(val, config=None): +def _ascii_escaped_by_config(val, config): if config is None: escape_option = False else: @@ -1194,7 +1194,7 @@ def _idval(val, argname, idx, idfn, item, config): return hook_id if isinstance(val, STRING_TYPES): - return _disable_escaping(val) + return _ascii_escaped_by_config(val, config) elif isinstance(val, (float, int, bool, NoneType)): return str(val) elif isinstance(val, REGEX_TYPE):