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 1455: [test-only] Protect metric data_points from raw next() calls #1456

Merged

Conversation

lancetarn
Copy link
Contributor

  • Ensure we wrap data_points so we don't assume Iterator traits

Description

In the course of resolving open-telemetry/opentelemetry-python#3035 it turned out that these tests were making some assumptions about the data_points property that are not supported by the current type annotations (although the implementation happens to).

Fixes #1455

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

This is a test-only issue for the sake of compatibility.

Does This PR Require a Core Repo Change?

Should be forward-compatible with the related Core PR

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@lancetarn
Copy link
Contributor Author

Looks like #1460 is going to take care of these test failures.

- Ensure we wrap data_points so we don't assume `Iterator` traits
@lancetarn lancetarn force-pushed the 1455-tornado-test-futureproof branch from fb924c8 to 5b7ffc7 Compare November 21, 2022 21:32
@lzchen lzchen added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Nov 21, 2022
@lzchen lzchen merged commit 9a155df into open-telemetry:main Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tornado tests assume metric data_points implement Iterator
3 participants