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

Deprecate bytes startswith and endswith #61

Merged
merged 9 commits into from
Jan 30, 2016

Conversation

ddormer
Copy link
Contributor

@ddormer ddormer commented Jan 25, 2016

See issue #60 for why 2 tests where deleted.

Fixes #56.

@mithrandi
Copy link
Contributor

axiom.test.test_query.WildcardQueries.testOneColumnAndStrings and axiom.test.test_query.WildcardQueries.testOneString need to be fixed as well.

@mithrandi
Copy link
Contributor

Hmm, I guess like and notLike should be deprecated the same way. Also, there should be a test that verifies that all of these deprecated things raise DeprecationWarnings; you can use assertWarns for this.

Deprecated tests for LIKE queries on L{axiom.attributes.bytes}.
"""
def test_startsWith(self):
s = Store()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s is unused here (and in the other tests), you can just remove it.

mithrandi added a commit that referenced this pull request Jan 30, 2016
Deprecate startswith/endswith/like/notLike on `attributes.bytes`.

LIKE comparisons on SQLite BLOB values do not work as you might expect, and don't work at all if SQLite was compiled with `SQLITE_LIKE_DOESNT_MATCH_BLOBS`.
@mithrandi mithrandi merged commit a86c0e7 into twisted:master Jan 30, 2016
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.

2 participants