[PyObjC-svn] r2288 - trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest

[email protected] Tue, 29 Sep 2009 09:08:00 -0500
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Tue Sep 29 09:08:00 2009
New Revision: 2288

Log:
Ignore some tests in 64-bit mode


Modified:
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssimplehorizontaltypesetter.py

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssimplehorizontaltypesetter.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssimplehorizontaltypesetter.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssimplehorizontaltypesetter.py	Tue Sep 29 09:08:00 2009
@@ -1,10 +1,12 @@
 from PyObjCTools.TestSupport import *
 from AppKit import *
 
-class TestNSSimpleHorizontalTypesetterHelper (NSSimpleHorizontalTypesetter):
-    def willSetLineFragmentRect_forGlyphRange_usedRect_(self, a, b, c): return 1
+if is32Bit():
+    class TestNSSimpleHorizontalTypesetterHelper (NSSimpleHorizontalTypesetter):
+        def willSetLineFragmentRect_forGlyphRange_usedRect_(self, a, b, c): return 1
 
 class TestNSSimpleHorizontalTypesetter (TestCase):
+    @onlyOn32Bit
     def testConstants(self):
         self.failUnlessEqual(NSLayoutNotDone, 0)
         self.failUnlessEqual(NSLayoutDone, 1)
@@ -21,6 +23,7 @@
         self.failUnlessEqual(NSBaselineNotSet, -1.0)
         self.failUnlessEqual(NumGlyphsToGetEachTime, 20)
 
+    @onlyOn32Bit
     def testMethods(self):
         self.failUnlessArgIsOut(NSSimpleHorizontalTypesetter.layoutGlyphsInLayoutManager_startingAtGlyphIndex_maxNumberOfLineFragments_nextGlyphIndex_, 3)
         self.failUnlessArgIsInOut(NSSimpleHorizontalTypesetter.layoutGlyphsInHorizontalLineFragment_baseline_, 1)

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf