Lines Matching refs:value
17 assert x1.value == "3"
19 assert y1.value == "(empty)"
21 assert z1.value == "hi!"
26 assert x2.value == "(empty2)"
28 assert y2.value == "7"
30 assert z2.value == "hi again"
35 assert x3.value == "(empty3)"
37 assert y3.value == "42"
39 assert z3.value == "bye"
43 assert str(excinfo.value) == "pybind11::init(): factory function returned nullptr"
66 assert msg(excinfo.value) == """
99 assert a.value == "4"
101 assert b.value == "5"
103 assert c.value == "6"
105 assert d.value == "7"
111 assert e.value == "8"
136 """Tests py::init_factory() wrapper with value conversions and alias types"""
178 # Return Class by value, moved into new alias:
183 # Return alias by value, moved into new alias:
245 # Both return an alias; the second multiplies the value by 10:
265 assert (str(excinfo.value) ==
318 assert m.TestFactory1.value.fget(a) == "33"
319 assert m.TestFactory2.value.fget(a) == "(empty2)"
334 """When the constructor is overloaded, previous overloads can require a preallocated value.
376 noisy new # return-by-value "new" part 1: allocation
454 assert str(excinfo.value) == "__init__(self, ...) called with invalid `self` argument"
459 assert str(excinfo.value) == "__init__(self, ...) called with invalid `self` argument"