[PyObjC-svn] r2489 - in trunk/pyobjc/pyobjc-framework-Message: . PyObjCTest

[email protected] Thu, 10 Jun 2010 18:30:31 -0500
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Thu Jun 10 18:30:31 2010
New Revision: 2489

Log:
Ensure that the tests only work in 32-bit mode, this framework
is empty for 64-bit code.


Modified:
   trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_message.py
   trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_nsmaildelivery.py
   trunk/pyobjc/pyobjc-framework-Message/distribute_setup.py

Modified: trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_message.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_message.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_message.py	Thu Jun 10 18:30:31 2010
@@ -3,6 +3,7 @@
 from PyObjCTools.TestSupport import *
 
 class TestMessage (TestCase):
+    @onlyOn32Bit
     def testClasses(self):
         self.assert_( hasattr(Message, 'NSMailDelivery') )
         self.assert_( isinstance(Message.NSMailDelivery, objc.objc_class) )

Modified: trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_nsmaildelivery.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_nsmaildelivery.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Message/PyObjCTest/test_nsmaildelivery.py	Thu Jun 10 18:30:31 2010
@@ -3,11 +3,14 @@
 from Message import *
 
 class TestNSMailDelivery (TestCase):
+
+    @onlyOn32Bit
     def testClasses(self):
         self.assertResultIsBOOL(NSMailDelivery.hasDeliveryClassBeenConfigured)
         self.assertResultIsBOOL(NSMailDelivery.deliverMessage_headers_format_protocol_)
         self.assertResultIsBOOL(NSMailDelivery.deliverMessage_subject_to_)
 
+    @onlyOn32Bit
     def testConstants(self):
         self.assertIsInstance(NSMIMEMailFormat, unicode)
         self.assertIsInstance(NSASCIIMailFormat, unicode)

Modified: trunk/pyobjc/pyobjc-framework-Message/distribute_setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Message/distribute_setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Message/distribute_setup.py	Thu Jun 10 18:30:31 2010
@@ -46,7 +46,7 @@
             args = [quote(arg) for arg in args]
         return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
 
-DEFAULT_VERSION = "0.6.8"
+DEFAULT_VERSION = "0.6.4"
 DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
 SETUPTOOLS_PKG_INFO = """\
 Metadata-Version: 1.0

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo