importing wxPython without an environment DISPLAY variable

Paulo Neves wrote:

I have some unit tests of wxPython classes. The tests run fine from the
command line, but they also must be automatically run everyday by a
cronjob. The problem is that import of wxPython module fails if there
isn't a DISPLAY environment variable set:

[...]

Does anyone know how I can run the tests without a display variable?

Use 2.5.

unset DISPLAY
python
Python 2.3 (#2, Aug 31 2003, 17:27:29)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.VERSION_STRING
2.5.1.5

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!