Skip to content

Commit

Permalink
Skip broken symlink test on Windows
Browse files Browse the repository at this point in the history
Python 3.2 introduced os.symlink() on Windows platforms, but it raises
NotImplementedError if the underlying OS is too old to support symlinks
(like what we have on winbot).

Fixes #13.
  • Loading branch information
mgedmin committed Jun 8, 2016
1 parent 07aaddd commit 0146542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testing/setupstack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ On Unix systems, broken symlinks can cause problems because the chmod
attempt by the teardown hook will fail; let's set up a broken symlink as
well, and verify the teardown doesn't break because of that:

>>> if hasattr(os, 'symlink'):
>>> if sys.platform != 'win32':
... os.symlink('NotThere', 'BrokenLink')

When tearDown is called:
Expand Down

0 comments on commit 0146542

Please sign in to comment.