Skip to content

Switching %r for repr(op_str) in test-expressions.py for issue 29886 #30321

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

Merged

Conversation

AncientRickles
Copy link
Contributor

@AncientRickles AncientRickles commented Dec 18, 2019

Swaps the following in pandas/tests/test_expressions.py:
From:
msg = "operator %r not implemented for bool dtypes"
f = getattr(operator, opname)
err_msg = re.escape(msg % op_str)
To:
msg = f"operator {repr(op_str)} not implemented for bool dtypes"
f = getattr(operator, opname)
err_msg = re.escape(msg)

This is for #29886

@TomAugspurger TomAugspurger added this to the 1.0 milestone Dec 18, 2019
@TomAugspurger TomAugspurger added the Code Style Code style, linting, code_checks label Dec 18, 2019
@TomAugspurger TomAugspurger merged commit 12f1070 into pandas-dev:master Dec 18, 2019
@TomAugspurger
Copy link
Contributor

Thanks @AncientRickles!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants