Commit 65388a29 authored by LoyukiL's avatar LoyukiL

Add tests for issue #599

Add four separate tests with prefix of sys_path for four types of
sys.path entries: str, unicode, subclass of str, and subclass of
unicode.
parent c0222dd0
import sys
sys.path.append("test_package")
import import_target
import sys
class TestClass(str):
pass
t = TestClass("test_package")
sys.path.append(t)
import import_target
import sys
sys.path.append(u"test_package")
import import_target
import sys
class TestClass(unicode):
pass
t = TestClass("test_package")
sys.path.append(t)
import import_target
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