You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=Noneclosed_at=<Date2021-12-12.00:18:24.088>created_at=<Date2016-01-27.13:36:20.114>labels= ['type-bug', 'expert-tkinter']
title='run runtktests.py error when test tkinter'updated_at=<Date2021-12-12.00:18:24.086>user='https://bugs.python.org/allensll'
When I run the following:
python ...\Python35\Lib\tkinter\test\runtktests.py
Error:
SystemError: Parent module 'tkinter.test' not loaded, cannot perform relative import
When I add "import tkinter.test" into runtktests.py,it's working.
According to bpo-18018, the SystemError is changed to ImportError in 3.6, and in Python 2 (or before 3.3) it raised ValueError.
To me, the more important question is: is running runtktests.py as a file meant to be supported, or should it be run as python -m tkinter.test.runtktests?
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: