Skip to content

Commit

Permalink
Add tests for issue pyston#599
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
KoykL committed Dec 24, 2015
1 parent c0222dd commit 65388a2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tests/sys_path_str.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import sys
sys.path.append("test_package")
import import_target
6 changes: 6 additions & 0 deletions test/tests/sys_path_str_subclass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys
class TestClass(str):
pass
t = TestClass("test_package")
sys.path.append(t)
import import_target
3 changes: 3 additions & 0 deletions test/tests/sys_path_unicode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import sys
sys.path.append(u"test_package")
import import_target
6 changes: 6 additions & 0 deletions test/tests/sys_path_unicode_subclass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys
class TestClass(unicode):
pass
t = TestClass("test_package")
sys.path.append(t)
import import_target

0 comments on commit 65388a2

Please sign in to comment.