This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_pickle issues "DeprecationWarning: The Tix Tk.."
Type: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: epaine, iritkatriel, lukasz.langa, miss-islington, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-07-30 18:24 by iritkatriel, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27496 closed epaine, 2021-07-30 19:31
PR 27538 merged serhiy.storchaka, 2021-08-02 06:33
PR 27556 merged miss-islington, 2021-08-02 16:12
PR 27557 merged miss-islington, 2021-08-02 16:12
Messages (4)
msg398599 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-07-30 18:24
% ./python.exe -E -We -m test -v test_pickle

======================================================================
ERROR: test_import (test.test_pickle.CompatPickleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 367, in getmodule
    return sys.modules[module]
           ~~~~~~~~~~~^^^^^^^^
KeyError: 'tkinter.tix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 401, in test_import
    getmodule(module)
    ^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 370, in getmodule
    __import__(module)
    ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/tkinter/tix.py", line 32, in <module>
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: The Tix Tk extension is unmaintained, and the tkinter.tix wrapper module is deprecated in favor of tkinter.ttk

======================================================================
ERROR: test_import_mapping (test.test_pickle.CompatPickleTests) [('tkinter.tix', 'Tix')]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 367, in getmodule
    return sys.modules[module]
           ~~~~~~~~~~~^^^^^^^^
KeyError: 'tkinter.tix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 409, in test_import_mapping
    getmodule(module3)
    ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 370, in getmodule
    __import__(module)
    ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/tkinter/tix.py", line 32, in <module>
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: The Tix Tk extension is unmaintained, and the tkinter.tix wrapper module is deprecated in favor of tkinter.ttk

======================================================================
ERROR: test_reverse_import_mapping (test.test_pickle.CompatPickleTests) [('Tix', 'tkinter.tix')]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 367, in getmodule
    return sys.modules[module]
           ~~~~~~~~~~~^^^^^^^^
KeyError: 'tkinter.tix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 440, in test_reverse_import_mapping
    getmodule(module3)
    ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_pickle.py", line 370, in getmodule
    __import__(module)
    ^^^^^^^^^^^^^^^^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/tkinter/tix.py", line 32, in <module>
    warnings.warn(
    ^^^^^^^^^^^^^^
DeprecationWarning: The Tix Tk extension is unmaintained, and the tkinter.tix wrapper module is deprecated in favor of tkinter.ttk

----------------------------------------------------------------------
msg398778 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-02 16:11
New changeset 36d952d228582b0ffc7a86c520d4ddbe8943d803 by Serhiy Storchaka in branch 'main':
bpo-44785: Silence deprecation warnings in test_pickle (#27538)
https://github.com/python/cpython/commit/36d952d228582b0ffc7a86c520d4ddbe8943d803
msg398781 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-02 16:39
New changeset 4817c1439519081d7bd9b396bb18b0f4124613be by Miss Islington (bot) in branch '3.9':
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)
https://github.com/python/cpython/commit/4817c1439519081d7bd9b396bb18b0f4124613be
msg398786 - (view) Author: miss-islington (miss-islington) Date: 2021-08-02 17:09
New changeset aa7266854abc63524b4be40a3a83977b8ad166c6 by Miss Islington (bot) in branch '3.10':
bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)
https://github.com/python/cpython/commit/aa7266854abc63524b4be40a3a83977b8ad166c6
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 88948
2021-08-02 18:04:40lukasz.langasetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.9, Python 3.10
2021-08-02 17:09:08miss-islingtonsetmessages: + msg398786
2021-08-02 16:39:32lukasz.langasetmessages: + msg398781
2021-08-02 16:12:24miss-islingtonsetpull_requests: + pull_request26063
2021-08-02 16:12:19miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request26062
2021-08-02 16:11:20lukasz.langasetnosy: + lukasz.langa
messages: + msg398778
2021-08-02 06:33:36serhiy.storchakasetnosy: + serhiy.storchaka
pull_requests: + pull_request26048
2021-07-30 19:31:23epainesetkeywords: + patch
nosy: + epaine

pull_requests: + pull_request26012
stage: patch review
2021-07-30 18:24:44iritkatrielsetversions: + Python 3.11
2021-07-30 18:24:31iritkatrielcreate