Skip to content

Deprecation warning in test_pyclbr #93481

Description

@iritkatriel

Running with warnings-as-errors:

======================================================================
ERROR: test_others (test.test_pyclbr.PyclbrTest.test_others)

Traceback (most recent call last):
File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pyclbr.py", line 221, in test_others
cm('cgi', ignore=('log',)) # set with = in module
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pyclbr.py", line 64, in checkModule
module = import(moduleName, globals(), {}, [''])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/iritkatriel/src/cpython-1/Lib/cgi.py", line 57, in
warnings._deprecated(name, remove=(3,13))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/iritkatriel/src/cpython-1/Lib/warnings.py", line 514, in _deprecated
warn(msg, DeprecationWarning, stacklevel=3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions