Skip to content

Commit

Permalink
Switch skip condition for symlink tests to check if windows
Browse files Browse the repository at this point in the history
python3.3 has os.symlink on windows, but we still want to skip this
test.
  • Loading branch information
jamesls committed Feb 1, 2014
1 parent 4e653fa commit 7469446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/customizations/s3/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ def test_sync_with_delete_option_with_same_prefix(self):
self.assertEqual('', p.stdout)


@unittest.skipIf(not hasattr(os, 'symlink'),
'OS does not support symlink()')
@unittest.skipIf(platform.system() not in ['Darwin', 'Linux'],
'Symlink tests only supported on mac/linux')
class TestBadSymlinks(BaseS3CLICommand):
def test_bad_symlink_stops_sync_process(self):
bucket_name = self.create_bucket()
Expand Down

0 comments on commit 7469446

Please sign in to comment.