Commits

Anonymous committed d1cdccf Merge

Disabling a test dependent on sys.executable, which is None on jython

  • Participants
  • Parent commits 0457c1a, ce22528

Comments (0)

Files changed (3)

 
     """ Interface to the system's uname command.
     """
-    if sys.platform in ('dos','win32','win16','os2'):
+    if sys.platform in ('dos','win32','win16','os2') or \
+       (sys.platform.startswith('java') and os._name == 'nt'):
         # XXX Others too ?
         return default
     try:

Lib/test/test_platform.py

         res = platform.dist()
 
     def test_libc_ver(self):
+        if sys.executable is None:
+            return
         import os
         if os.path.isdir(sys.executable) and \
            os.path.exists(sys.executable+'.exe'):
File contents unchanged.