Addrf simple test that import is case-sensitive.

This commit is contained in:
Tim Peters 2001-03-21 03:58:16 +00:00
parent 9de05f4157
commit eba5130e4f

View file

@ -1,9 +1,18 @@
from test_support import TESTFN
from test_support import TESTFN, TestFailed
import os
import random
import sys
# Brief digression to test that import is case-sensitive: if we got this
# far, we know for sure that "random" exists.
try:
import RAnDoM
except ImportError:
pass
else:
raise TestFailed("import of RAnDoM should have failed (case mismatch)")
sys.path.insert(0, os.curdir)
source = TESTFN + ".py"