[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks both of you for (finally) tracking this down! I've applied flox's quick fix in r78172, and reverted the old attempted fix in r78173. Both merged to py3k in r78174. -- resolution: -> fixed stage: patch review -> committed/rejected status: open

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Larry Hastings
Larry Hastings added the comment: Patch to make testcapsule clear import errors when testing. Sorry about the whitespace changes, but I outdented a bunch of code--I think it's clearer this way. -- Added file: http://bugs.python.org/file16223/lch.patch.trunk.py3k.r78149 _

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Florent Xicluna
Florent Xicluna added the comment: The simple fix: --- Modules/_testcapimodule.c (revision 78171) +++ Modules/_testcapimodule.c (working copy) @@ -1763,6 +1763,8 @@ Py_DECREF(object); Py_DECREF(module); } + else +

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Larry Hastings
Larry Hastings added the comment: "To reproduce: add a typo on "_curses" on line 1666." Of what file? -- ___ Python tracker ___ ___ P

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Florent Xicluna
Florent Xicluna added the comment: The behaviour is weird. Use attached patch to reproduce this behaviour. ~ $ ./python -m test.regrtest -uall test_curses test_datetime test_curses test_curses skipped -- No module named _NO_curses test_datetime 1 test OK. 1 test skipped: test_curses Those

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7924] test_capi crashes with misleading datetime ImportError when _curses is not built

2010-02-13 Thread Florent Xicluna
New submission from Florent Xicluna : This crash is sporadic on some buildbots where _curses is not built: test_capi XXX undetected error test test_capi crashed -- : No module named datetime Note: the changeset r76810 did not fix the issue. It can be reverted. The problem occurs during t