[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/test testutil.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/test testutil.py |
Date: |
Sun, 13 Oct 2002 08:45:53 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/10/13 08:45:53
Modified files:
test : testutil.py
Log message:
We can't use different locals() and globals() when execing the test
file: the global test setup's names don't get there.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/testutil.py.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
Patches:
Index: gzz/test/testutil.py
diff -c gzz/test/testutil.py:1.22 gzz/test/testutil.py:1.23
*** gzz/test/testutil.py:1.22 Sat Oct 12 08:58:36 2002
--- gzz/test/testutil.py Sun Oct 13 08:45:53 2002
***************
*** 28,34 ****
can be tangled into unittests...
NOTE: testutil.py itself runs all tests in test/ when run as main.
- test.py runs only tests in the test/gzz/ subtree.
"""
import sys
sys.path.insert(0, ".")
--- 28,33 ----
***************
*** 106,113 ****
else:
raise e
try:
! exec compiledTestFile in globals(), tests
except NeedGLError, e:
print "Skipping test %s because it needs OpenGL compiled.", file
--- 105,113 ----
else:
raise e
+ tests["needGL"] = needGL
try:
! exec compiledTestFile in tests
except NeedGLError, e:
print "Skipping test %s because it needs OpenGL compiled.", file
- [Gzz-commits] gzz/test testutil.py,
Tuomas J. Lukka <=
- [Gzz-commits] gzz/test testutil.py, Tuomas J. Lukka, 2002/10/14
- [Gzz-commits] gzz/test testutil.py, Tuomas J. Lukka, 2002/10/14
- [Gzz-commits] gzz/test testutil.py, Tuomas J. Lukka, 2002/10/15
- [Gzz-commits] gzz/test testutil.py, Tuomas J. Lukka, 2002/10/19
- [Gzz-commits] gzz/test testutil.py, Tuomas J. Lukka, 2002/10/19