mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 17:13:53 +00:00
Renaming test_type_caster_bare_interface_demo to test_type_caster_bare_interface.
This commit is contained in:
parent
edfe8bfd71
commit
ef8a13c280
@ -3,7 +3,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace pybind11_tests {
|
namespace pybind11_tests {
|
||||||
namespace type_caster_bare_interface_demo {
|
namespace type_caster_bare_interface {
|
||||||
|
|
||||||
struct mpty {};
|
struct mpty {};
|
||||||
|
|
||||||
@ -37,13 +37,13 @@ const char* pass_mpty_uqcp(std::unique_ptr<mpty const>) { return "load_uqcp"; }
|
|||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
} // namespace type_caster_bare_interface_demo
|
} // namespace type_caster_bare_interface
|
||||||
} // namespace pybind11_tests
|
} // namespace pybind11_tests
|
||||||
|
|
||||||
namespace pybind11 {
|
namespace pybind11 {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
using namespace pybind11_tests::type_caster_bare_interface_demo;
|
using namespace pybind11_tests::type_caster_bare_interface;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct type_caster<mpty> {
|
struct type_caster<mpty> {
|
||||||
@ -177,9 +177,9 @@ struct type_caster<std::unique_ptr<mpty const>> {
|
|||||||
} // namespace pybind11
|
} // namespace pybind11
|
||||||
|
|
||||||
namespace pybind11_tests {
|
namespace pybind11_tests {
|
||||||
namespace type_caster_bare_interface_demo {
|
namespace type_caster_bare_interface {
|
||||||
|
|
||||||
TEST_SUBMODULE(type_caster_bare_interface_demo, m) {
|
TEST_SUBMODULE(type_caster_bare_interface, m) {
|
||||||
m.def("rtrn_mpty_valu", rtrn_mpty_valu);
|
m.def("rtrn_mpty_valu", rtrn_mpty_valu);
|
||||||
m.def("rtrn_mpty_rref", rtrn_mpty_rref);
|
m.def("rtrn_mpty_rref", rtrn_mpty_rref);
|
||||||
m.def("rtrn_mpty_cref", rtrn_mpty_cref);
|
m.def("rtrn_mpty_cref", rtrn_mpty_cref);
|
||||||
@ -207,5 +207,5 @@ TEST_SUBMODULE(type_caster_bare_interface_demo, m) {
|
|||||||
m.def("pass_mpty_uqcp", pass_mpty_uqcp);
|
m.def("pass_mpty_uqcp", pass_mpty_uqcp);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace type_caster_bare_interface_demo
|
} // namespace type_caster_bare_interface
|
||||||
} // namespace pybind11_tests
|
} // namespace pybind11_tests
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from pybind11_tests import type_caster_bare_interface_demo as m
|
from pybind11_tests import type_caster_bare_interface as m
|
||||||
|
|
||||||
|
|
||||||
def test_cast():
|
def test_cast():
|
Loading…
Reference in New Issue
Block a user