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

test_typing emits deprecation warnings #90957

Closed
iritkatriel opened this issue Feb 19, 2022 · 1 comment
Closed

test_typing emits deprecation warnings #90957

iritkatriel opened this issue Feb 19, 2022 · 1 comment
Labels
3.11 only security fixes tests Tests in the Lib/test dir

Comments

@iritkatriel
Copy link
Member

BPO 46801
Nosy @iritkatriel
PRs
  • bpo-46801: suppress deprecation warnings in test_typing #31433
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2022-02-19.19:43:05.133>
    created_at = <Date 2022-02-19.19:36:56.646>
    labels = ['tests', '3.11']
    title = 'test_typing emits deprecation warnings'
    updated_at = <Date 2022-02-19.19:43:05.132>
    user = 'https://github.com/iritkatriel'

    bugs.python.org fields:

    activity = <Date 2022-02-19.19:43:05.132>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-19.19:43:05.133>
    closer = 'iritkatriel'
    components = ['Tests']
    creation = <Date 2022-02-19.19:36:56.646>
    creator = 'iritkatriel'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46801
    keywords = ['patch']
    message_count = 1.0
    messages = ['413558']
    nosy_count = 1.0
    nosy_names = ['iritkatriel']
    pr_nums = ['31433']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46801'
    versions = ['Python 3.11']

    @iritkatriel
    Copy link
    Member Author

    ======================================================================
    ERROR: test_typeddict_create_errors (test.test_typing.TypedDictTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/Users/iritkatriel/src/cpython-1/Lib/test/test_typing.py", line 4589, in test_typeddict_create_errors
        TypedDict('Emp', _fields={'name': str, 'id': int})
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/iritkatriel/src/cpython-1/Lib/typing.py", line 2609, in TypedDict
        warnings.warn(
        ^^^^^^^^^^^^^^
    DeprecationWarning: The kwargs-based syntax for TypedDict definitions is deprecated in Python 3.11, will be removed in Python 3.13, and may not be understood by third-party type checkers.

    ======================================================================
    ERROR: test_typeddict_errors (test.test_typing.TypedDictTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/Users/iritkatriel/src/cpython-1/Lib/test/test_typing.py", line 4602, in test_typeddict_errors
        TypedDict('Hi', x=1)
        ^^^^^^^^^^^^^^^^^^^^
      File "/Users/iritkatriel/src/cpython-1/Lib/typing.py", line 2609, in TypedDict
        warnings.warn(
        ^^^^^^^^^^^^^^
    DeprecationWarning: The kwargs-based syntax for TypedDict definitions is deprecated in Python 3.11, will be removed in Python 3.13, and may not be understood by third-party type checkers.

    @iritkatriel iritkatriel added 3.11 only security fixes tests Tests in the Lib/test dir labels Feb 19, 2022
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant