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

fix(stdlib): do not load some tests #4956

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Conversation

nathanielc
Copy link
Contributor

Some tests that should error have a different error message when pushed
down. This is fine and make sense. To keep things simple this change no
longer uses testing.load for those tests. Equivalent tests will be added
to InfluxDB directly to ensure we still get those different errors.

Done checklist

  • docs/SPEC.md updated
  • Test cases written

@nathanielc nathanielc requested a review from a team as a code owner July 1, 2022 19:32
@nathanielc nathanielc requested review from skartikey and onelson and removed request for a team and skartikey July 1, 2022 19:32
Some tests that should error have a different error message when pushed
down. This is fine and make sense. To keep things simple this change no
longer uses testing.load for those tests. Equivalent tests will be added
to InfluxDB directly to ensure we still get those different errors.
@nathanielc nathanielc force-pushed the fix/influxdb-pushdown-tests branch from e8f0792 to 117fbee Compare July 1, 2022 19:48
Copy link
Contributor

@onelson onelson left a comment

Choose a reason for hiding this comment

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

Seems fine. Ideally we'd enhance shouldError such that we can indicate a portion of the string can be ignored, or otherwise uses a regex matcher. I don't think the line/column numbers are a great signal for anything in this situation.

Python doc tests use an ellipsis to say a portion of a pattern matches anything, but the remaining portions are used verbatim. Probably that's more than we want.

@nathanielc nathanielc merged commit ae50841 into master Jul 1, 2022
@nathanielc nathanielc deleted the fix/influxdb-pushdown-tests branch July 1, 2022 20:49
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