aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 6f91857..a57ca0c 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -4633,7 +4633,10 @@ class AllPlatformTests(BasePlatformTests):
symlinked_subproject = os.path.join(testdir, 'subprojects', 'symlinked_subproject')
if not os.path.exists(subproject_dir):
os.mkdir(subproject_dir)
- os.symlink(subproject, symlinked_subproject)
+ try:
+ os.symlink(subproject, symlinked_subproject)
+ except OSError:
+ raise SkipTest("Symlinks are not available on this machine")
self.addCleanup(os.remove, symlinked_subproject)
self.init(testdir)