[New-bugs-announce] [issue8167] test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory

Ned Deily report at bugs.python.org
Thu Mar 18 11:20:18 CET 2010


New submission from Ned Deily <nad at acm.org>:

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.)

----------
components: Tests
messages: 101256
nosy: benjamin.peterson, gpolo, ned.deily
severity: normal
status: open
title: test_tk, test_ttk_guionly, and test_ttk_textonly crash when run from install directory
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8167>
_______________________________________


More information about the New-bugs-announce mailing list