Visitar URL original
[3.10] bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784) by miss-islington · Pull Request #26790 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250123124124/https://github.com/python/cpython/pull/26790
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

[3.10] bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784) #26790

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 18, 2021 •

This avoids the following error if DeprecationWarnings are ignored.

======================================================================
ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests)
Prior versions of Distribution.entry_points would return a
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index
    expected = next(iter(caught))
StopIteration
----------------------------------------------------------------------
Ran 1402 tests in 2.125s
FAILED (errors=1, skipped=18, expected failures=1)

(cherry picked from commit df1502e)

Co-authored-by: Miro Hrončok miro@hroncok.cz

https://bugs.python.org/issue44451

Automerge-Triggered-By: GH:jaraco

…try_points_by_index (pythonGH-26784)

This avoids the following error if DeprecationWarnings are ignored.

    ======================================================================
    ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests)
    Prior versions of Distribution.entry_points would return a
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index
        expected = next(iter(caught))
    StopIteration
    ----------------------------------------------------------------------
    Ran 1402 tests in 2.125s
    FAILED (errors=1, skipped=18, expected failures=1)
(cherry picked from commit df1502e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
@miss-islington
Copy link
Contributor Author

@hroncok and @jaraco: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@hroncok and @jaraco: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@hroncok and @jaraco: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@hroncok and @jaraco: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit bf55a79 into python:3.10 Jun 18, 2021
@miss-islington miss-islington deleted the backport-df1502e-3.10 branch June 18, 2021 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants