Commits

Anonymous committed b3fce89

Committing unit test that causes an abort().

Comments (0)

Files changed (1)

pyobjc/Lib/Foundation/test/test_keyvalue.py

         STUB.setKeyValue_forObject_key_value_(1, o, "multiple.level2.level3.keyB", 9.999)
         self.assertEquals(o.multiple.level2.level3.keyB, 9.999)
 
+class KVOClass(objc.runtime.NSObject):
+    def automaticallyNotifiesObserversForKey_(self, aKey):
+        return NO
+
+    def test(self): return "test"
 
 class TestBaseExceptions (unittest.TestCase):
     """
         self.assertRaises(KeyError, 
             o.takeStoredValue_forKey_, "value", "unknownKey")
 
+    def testKVO(self):
+        o = KVOClass.alloc().init()
+        o.addObserver_forKeyPath_options_context_(self, "test", 0, 0)
+
 if __name__ == "__main__":
     unittest.main()