From f9ee60a88e08bef5715e32baeee375526e671c32 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Wed, 14 Jan 2009 18:10:10 -0700
Subject: [PATCH] cli: tests: skip symlink test if there is no os.symlink

---
 src/allmydata/test/test_cli.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py
index 5fd09b55..22856866 100644
--- a/src/allmydata/test/test_cli.py
+++ b/src/allmydata/test/test_cli.py
@@ -602,6 +602,8 @@ class Cp(SystemTestMixin, CLITestMixin, unittest.TestCase):
     test_unicode_filename.todo = "This behavior is not yet supported, although it does happen to work (for reasons that are ill-understood) on many platforms.  See issue ticket #534."
 
     def test_dangling_symlink_vs_recursion(self):
+        if not hasattr(os, 'symlink'):
+            raise unittest.SkipTest("There is no symlink on this platform.")
         # cp -r on a directory containing a dangling symlink shouldn't assert
         self.basedir = os.path.dirname(self.mktemp())
         dn = os.path.join(self.basedir, "dir")
-- 
2.45.2