Commit d304f449 authored by Tim Peters's avatar Tim Peters

Patch #103343: Allow the important test_pkg to succeed under Jython.

parent db786876
...@@ -38,8 +38,8 @@ t6.eggs loading ...@@ -38,8 +38,8 @@ t6.eggs loading
['eggs', 'ham', 'spam', 't6'] ['eggs', 'ham', 'spam', 't6']
running test t7 running test t7
t7 loading t7 loading
['__builtins__', '__doc__', '__file__', '__name__', '__path__'] ['__doc__', '__file__', '__name__', '__path__']
['__builtins__', '__doc__', '__file__', '__name__', '__path__'] ['__doc__', '__file__', '__name__', '__path__']
t7.sub.subsub loading t7.sub.subsub loading
['__builtins__', '__doc__', '__file__', '__name__', '__path__', 'spam'] ['__doc__', '__file__', '__name__', '__path__', 'spam']
t7.sub.subsub.spam = 1 t7.sub.subsub.spam = 1
...@@ -187,13 +187,13 @@ print dir() ...@@ -187,13 +187,13 @@ print dir()
""" """
t7, sub, subsub = None, None, None t7, sub, subsub = None, None, None
import t7 as tas import t7 as tas
print dir(tas) print fixdir(dir(tas))
verify(not t7) verify(not t7)
from t7 import sub as subpar from t7 import sub as subpar
print dir(subpar) print fixdir(dir(subpar))
verify(not t7 and not sub) verify(not t7 and not sub)
from t7.sub import subsub as subsubsub from t7.sub import subsub as subsubsub
print dir(subsubsub) print fixdir(dir(subsubsub))
verify(not t7 and not sub and not subsub) verify(not t7 and not sub and not subsub)
from t7.sub.subsub import spam as ham from t7.sub.subsub import spam as ham
print "t7.sub.subsub.spam =", ham print "t7.sub.subsub.spam =", ham
......
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