Commits

Anonymous committed 3c5da38

objectinfertest: added an ignored test for property as decorator

  • Participants
  • Parent commits 4159480

Comments (0)

Files changed (1)

File ropetest/objectinfertest.py

         e_var = mod['e'].get_object()
         self.assertEquals(my_error, e_var.get_type())
 
+    # TODO: properties as decorators
+    def xxx_test_using_property_as_decorators(self):
+        mod = self.pycore.get_string_module(
+            'class A(object):\n    pass\n'
+            'class B(object):\n    '
+            '@property\n    def f(self):\n        return A()\n'
+            'b = B()\nvar = b.f\n')
+        var = mod['var'].get_object()
+        a = mod['A'].get_object()
+        self.assertEquals(a, var.get_type())
+
 
 def suite():
     result = unittest.TestSuite()