15 |
# $Source$ |
# $Source$ |
16 |
# $Id$ |
# $Id$ |
17 |
|
|
18 |
import os, sys |
import os |
19 |
|
|
20 |
|
# It should be possible to run the Thuban testsuite without an X |
21 |
|
# connection, so we remove the DISPLAY environment variable which should |
22 |
|
# lead to an error if the wxGTK module is imported accidentally. The |
23 |
|
# DISPLAY variable is not always set so we catch and ignore the KeyError |
24 |
|
try: |
25 |
|
del os.environ["DISPLAY"] |
26 |
|
except KeyError: |
27 |
|
pass |
28 |
|
|
29 |
|
import sys |
30 |
import warnings |
import warnings |
31 |
import unittest |
import unittest |
32 |
import getopt |
import getopt |