Initial revision

This commit is contained in:
Guido van Rossum 1992-01-27 17:00:37 +00:00
parent 19a86e72df
commit 3bead0984c
9 changed files with 913 additions and 0 deletions

22
Lib/test/test_support.py Normal file
View file

@ -0,0 +1,22 @@
# Python test set -- supporting definitions.
TestFailed = 'test_support -- test failed' # Exception
def unload(name):
import sys
try:
del sys.modules[name]
except KeyError:
pass
def forget(modname):
unload(modname)
import sys, os
for dirname in sys.path:
try:
os.unlink(os.path.join(dirname, modname + '.pyc'))
except os.error:
pass
TESTFN = '@test' # Filename used for testing
from os import unlink