-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ini option to disable string escape for parametrization #4995
add ini option to disable string escape for parametrization #4995
Conversation
src/_pytest/python.py
Outdated
@@ -1177,7 +1194,7 @@ def _idval(val, argname, idx, idfn, item, config): | |||
return hook_id | |||
|
|||
if isinstance(val, STRING_TYPES): | |||
return ascii_escaped(val) | |||
return _ascii_escaped_by_config(val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without passing config, this is useless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I fixed it
Codecov Report
@@ Coverage Diff @@
## features #4995 +/- ##
============================================
+ Coverage 95.98% 95.98% +<.01%
============================================
Files 113 113
Lines 25381 25387 +6
Branches 2503 2504 +1
============================================
+ Hits 24361 24367 +6
Misses 714 714
Partials 306 306
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from my suggestion to the docs 👍
Thanks a lot for this @youknowone! |
closes #2482
Cherry-picked and rebased #2830
changelog
folder, with a name like<ISSUE NUMBER>.<TYPE>.rst
. See changelog/README.rst for details.master
branch for bug fixes, documentation updates and trivial changes.features
branch for new features and removals/deprecations.Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:
AUTHORS
in alphabetical order;cc @ApaDoctor