From: <pj...@us...> - 2009-05-23 02:03:37
|
Revision: 6367 http://jython.svn.sourceforge.net/jython/?rev=6367&view=rev Author: pjenvey Date: 2009-05-23 02:02:32 +0000 (Sat, 23 May 2009) Log Message: ----------- fix windows detection Modified Paths: -------------- trunk/jython/Lib/test/test_popen2.py Modified: trunk/jython/Lib/test/test_popen2.py =================================================================== --- trunk/jython/Lib/test/test_popen2.py 2009-05-23 02:01:49 UTC (rev 6366) +++ trunk/jython/Lib/test/test_popen2.py 2009-05-23 02:02:32 UTC (rev 6367) @@ -5,7 +5,7 @@ import os import sys -from test.test_support import TestSkipped, reap_children +from test.test_support import TestSkipped, is_jython, reap_children # popen2 contains its own testing routine # which is especially useful to see if open files @@ -40,7 +40,7 @@ assert not popen2._active, "Active pipes when test starts " + repr([c.cmd for c in popen2._active]) cmd = "cat" teststr = "ab cd\n" - if os.name == "nt": + if os.name == "nt" or (is_jython and os._name == 'nt'): cmd = "more" # "more" doesn't act the same way across Windows flavors, # sometimes adding an extra newline at the start or the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |