Commit eba5130e authored by Tim Peters's avatar Tim Peters

Addrf simple test that import is case-sensitive.

parent 9de05f41
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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment