28 |
can be tangled into unittests... |
can be tangled into unittests... |
29 |
|
|
30 |
NOTE: testutil.py itself runs all tests in test/ when run as main. |
NOTE: testutil.py itself runs all tests in test/ when run as main. |
|
test.py runs only tests in the test/gzz/ subtree. |
|
31 |
""" |
""" |
32 |
import sys |
import sys |
33 |
sys.path.insert(0, ".") |
sys.path.insert(0, ".") |
105 |
else: |
else: |
106 |
raise e |
raise e |
107 |
|
|
108 |
|
tests["needGL"] = needGL |
109 |
try: |
try: |
110 |
exec compiledTestFile in globals(), tests |
exec compiledTestFile in tests |
111 |
except NeedGLError, e: |
except NeedGLError, e: |
112 |
print "Skipping test %s because it needs OpenGL compiled.", file |
print "Skipping test %s because it needs OpenGL compiled.", file |
113 |
|
|