zopefoundation / zope.testing

Other
4 stars 13 forks source link

Tests fail on Windows because os.symlink() raises NotImplementedError #13

Closed mgedmin closed 8 years ago

mgedmin commented 8 years ago

From http://winbot.zope.org/builders/zope.testing_py_330_win32/builds/9/steps/test/logs/stdio:

File "c:\buildslave\zope.testing_py_330_win32\build\build\lib\zope\testing\setupstack.txt", line 96, in setupstack.txt
Failed example:
    if hasattr(os, 'symlink'):
        os.symlink('NotThere', 'BrokenLink')
Exception raised:
    Traceback (most recent call last):
      File "c:\Python33_32\lib\doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest setupstack.txt[19]>", line 2, in <module>
        os.symlink('NotThere', 'BrokenLink')
    NotImplementedError: CreateSymbolicLink functions not found

This would be because Python 3.2 added support for os.symlink on Windows (starting with Vista), but winbot is running an older version of Windows (ouch).