[CalendarServer-changes] [6897] CalendarServer/branches/users/glyph/linux-tests/twistedcaldav/ directory/test/test_opendirectory.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 7 04:39:13 PST 2011


Revision: 6897
          http://trac.macosforge.org/projects/calendarserver/changeset/6897
Author:   glyph at apple.com
Date:     2011-02-07 04:39:12 -0800 (Mon, 07 Feb 2011)
Log Message:
-----------
Do explicit platform detection in the tests, since the new module provides do-nothing stubs rather than failing to import.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/linux-tests/twistedcaldav/directory/test/test_opendirectory.py

Modified: CalendarServer/branches/users/glyph/linux-tests/twistedcaldav/directory/test/test_opendirectory.py
===================================================================
--- CalendarServer/branches/users/glyph/linux-tests/twistedcaldav/directory/test/test_opendirectory.py	2011-02-07 12:38:56 UTC (rev 6896)
+++ CalendarServer/branches/users/glyph/linux-tests/twistedcaldav/directory/test/test_opendirectory.py	2011-02-07 12:39:12 UTC (rev 6897)
@@ -21,6 +21,7 @@
 else:
     from twisted.trial.unittest import SkipTest
     from twisted.internet.defer import inlineCallbacks
+    from twisted.python.runtime import platform
     from twext.web2.auth.digest import DigestedCredentials
     import twistedcaldav.directory.test.util
     from twistedcaldav.directory import augment
@@ -43,6 +44,8 @@
         """
         Test Open Directory directory implementation.
         """
+        if not platform.isMacOSX():
+            skip = "Currently, OpenDirectory backend only works on MacOS X."
         recordTypes = set((
             DirectoryService.recordType_users,
             DirectoryService.recordType_groups,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110207/2dcaecb2/attachment.html>


More information about the calendarserver-changes mailing list