From: <pj...@us...> - 2009-10-20 00:06:11
|
Revision: 6877 http://jython.svn.sourceforge.net/jython/?rev=6877&view=rev Author: pjenvey Date: 2009-10-20 00:06:05 +0000 (Tue, 20 Oct 2009) Log Message: ----------- don't hardcode the platform module name Modified Paths: -------------- trunk/jython/Lib/test/test_import_jy.py Modified: trunk/jython/Lib/test/test_import_jy.py =================================================================== --- trunk/jython/Lib/test/test_import_jy.py 2009-10-19 22:08:32 UTC (rev 6876) +++ trunk/jython/Lib/test/test_import_jy.py 2009-10-20 00:06:05 UTC (rev 6877) @@ -100,8 +100,10 @@ def test_override(self): modname = os.path.__name__ tests = [ - ("import os.path" , "('os.path', None, -1, '_posix')" ), - ("import os.path as path2", "('os.path', None, -1, '_posix')" ), + ("import os.path" , "('os.path', None, -1, '_%s')" + % os._name), + ("import os.path as path2", "('os.path', None, -1, '_%s')" + % os._name), ("from os.path import *" , "('os.path', ('*',), -1, '%s')" % modname), ("from os.path import join", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |