From: <cg...@us...> - 2006-07-28 00:04:37
|
Revision: 2860 Author: cgroves Date: 2006-07-25 19:43:32 -0700 (Tue, 25 Jul 2006) ViewCVS: http://svn.sourceforge.net/jython/?rev=2860&view=rev Log Message: ----------- tests that import misses of sibling modules are cached in sys.modules as None Added Paths: ----------- trunk/bugtests/test387.py trunk/bugtests/test387p/ trunk/bugtests/test387p/__init__.py trunk/bugtests/test387p/test387m.py Added: trunk/bugtests/test387.py =================================================================== --- trunk/bugtests/test387.py (rev 0) +++ trunk/bugtests/test387.py 2006-07-26 02:43:32 UTC (rev 2860) @@ -0,0 +1,10 @@ +import support + +import test387p.test387m + +import sys + +if not 'test387p.difflib' in sys.modules: + raise support.TestError, 'Cached module for sibling module import miss should exist in sys.modules' +if not sys.modules['test387p.difflib'] is None: + raise support.TestError, 'Cached module for sibling module import miss should be None in sys.modules' Added: trunk/bugtests/test387p/__init__.py =================================================================== Added: trunk/bugtests/test387p/test387m.py =================================================================== --- trunk/bugtests/test387p/test387m.py (rev 0) +++ trunk/bugtests/test387p/test387m.py 2006-07-26 02:43:32 UTC (rev 2860) @@ -0,0 +1 @@ +import difflib This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |