Home
last modified time | relevance | path

Searched refs:testfunction (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/test/
Dtest_capi.py42 def testfunction(self): function
49 testfunction = _testcapi.instancemethod(testfunction) variable in InstanceMethod
56 self.assertTrue(inst.testfunction() is inst)
57 self.assertEqual(inst.testfunction.__doc__, testfunction.__doc__)
58 self.assertEqual(InstanceMethod.testfunction.__doc__, testfunction.__doc__)
60 InstanceMethod.testfunction.attribute = "test"
61 self.assertEqual(testfunction.attribute, "test")
62 self.assertRaises(AttributeError, setattr, inst.testfunction, "attribute", "test")
Dtest_call.py540 def testfunction(self): function
554 cached = functools.lru_cache(1)(testfunction)
559 self.assertTrue(type(testfunction).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
606 (testfunction, (42,), {}, 42),