Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
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

Merged
merged 3 commits into from
Mar 27, 2019
Merged

add ini option to disable string escape for parametrization #4995

merged 3 commits into from
Mar 27, 2019

Conversation

youknowone
Copy link
Contributor

closes #2482

Cherry-picked and rebased #2830

  • Create a new changelog file in the changelog folder, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.
  • Target the master branch for bug fixes, documentation updates and trivial changes.
  • Target the features branch for new features and removals/deprecations.
  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.

Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:

  • Add yourself to AUTHORS in alphabetical order;

cc @ApaDoctor

@@ -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)
Copy link
Member

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

Copy link
Contributor Author

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
Copy link

codecov bot commented Mar 24, 2019

Codecov Report

Merging #4995 into features will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
src/_pytest/python.py 93.3% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69a55d3...3d9e68e. Read the comment docs.

doc/en/parametrize.rst Outdated Show resolved Hide resolved
doc/en/parametrize.rst Outdated Show resolved Hide resolved
Copy link
Member

@nicoddemus nicoddemus left a 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 👍

@nicoddemus nicoddemus merged commit 6c602c2 into pytest-dev:features Mar 27, 2019
@nicoddemus
Copy link
Member

Thanks a lot for this @youknowone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants