Lines Matching +full:modules +full:- +full:2
1 # -*- coding: utf-8 -*-
2 from pybind11_tests import modules as m
3 from pybind11_tests.modules import subsubmodule as ms
11 assert pybind11_tests.modules.__name__ == "pybind11_tests.modules"
13 pybind11_tests.modules.subsubmodule.__name__
14 == "pybind11_tests.modules.subsubmodule"
16 assert m.__name__ == "pybind11_tests.modules"
17 assert ms.__name__ == "pybind11_tests.modules.subsubmodule"
26 assert str(b.get_a2()) == "A[2]"
27 assert str(b.a2) == "A[2]"
37 assert astats.alive() == 2
42 assert astats.values() == ["1", "2", "42", "43"]
50 assert astats.copy_assignments == 2
57 from pybind11_tests.modules import OD
61 assert str(OD([(1, "a"), (2, "b")])) == "OrderedDict([(1, 'a'), (2, 'b')])"
81 """Test that all the keys in the builtin modules have type str.
83 Previous versions of pybind11 would add a unicode key in python 2.