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_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory
Type: Stage:
Components: Tests Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, gpolo, ned.deily
Priority: normal Keywords:

Created on 2010-03-18 10:20 by ned.deily, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101256 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-03-18 10:20
When installation tests are run on a user system using the OS X installer, the three tests fail with a crash.  Similar results would be expected on other unix-y platforms when tests are run from the install destination, and not the source or build directories (which do not exist on user systems using installers). On 3.1.2rc1 and py3k, each crashes on an import error:

  test test_{tk,ttk_guionly,ttk_textonly} crashed -- <class 'ImportError'>: No module named test

On trunk (2.7), they crash with;
  test test_{tk,ttk_guionly,ttk_textonly} crashed -- <type 'exceptions.ImportError'>: No module named runtktests

The problem is that the test subdirectories are not being installed by the libinstall Makefile target.  For 3.1.2rc1 and py3k, adding the directories to LIBSUBDIRS should get them installed:
  LIBSUBDIRS= tkinter site-packages test test/output test/data \
    tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \
    test/decimaltestdata \ {...}
(Trunk is slightly different.)
msg101285 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-03-18 21:33
Fixed in r79056.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52414
2010-03-18 21:33:14benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg101285
2010-03-18 10:20:16ned.deilycreate