* separate all tests from plugins * simplify implicit inclusion of plugins under test * have test_initpkg perform direct checks instead of yielding tests * fix example tests for 3k --HG-- branch : trunk
14 lines
232 B
Python
14 lines
232 B
Python
import sys
|
|
|
|
def main(fn):
|
|
print("Testing %s" % (fn,))
|
|
fp = open(fn, "rb")
|
|
try:
|
|
source = fp.read()
|
|
finally:
|
|
fp.close()
|
|
compile(source, fn, "exec")
|
|
|
|
if __name__ == "__main__":
|
|
main(sys.argv[1])
|