[New-bugs-announce] [issue44785] test_pickle issues "DeprecationWarning: The Tix Tk.."

Irit Katriel report at bugs.python.org
Fri Jul 30 14:24:31 EDT 2021


New submission from Irit Katriel <iritkatriel at gmail.com>:

% ./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

----------------------------------------------------------------------

----------
components: Tests
messages: 398599
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: test_pickle issues  "DeprecationWarning: The Tix Tk.."

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44785>
_______________________________________


More information about the New-bugs-announce mailing list