From ef8a13c2802a15964ff65aeda1ecd24230dd3cf6 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sun, 24 Jan 2021 23:16:46 -0800 Subject: [PATCH] Renaming test_type_caster_bare_interface_demo to test_type_caster_bare_interface. --- ..._demo.cpp => test_type_caster_bare_interface.cpp} | 12 ++++++------ ...ce_demo.py => test_type_caster_bare_interface.py} | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename tests/{test_type_caster_bare_interface_demo.cpp => test_type_caster_bare_interface.cpp} (95%) rename tests/{test_type_caster_bare_interface_demo.py => test_type_caster_bare_interface.py} (94%) diff --git a/tests/test_type_caster_bare_interface_demo.cpp b/tests/test_type_caster_bare_interface.cpp similarity index 95% rename from tests/test_type_caster_bare_interface_demo.cpp rename to tests/test_type_caster_bare_interface.cpp index ea6041a65..02b6281c2 100644 --- a/tests/test_type_caster_bare_interface_demo.cpp +++ b/tests/test_type_caster_bare_interface.cpp @@ -3,7 +3,7 @@ #include namespace pybind11_tests { -namespace type_caster_bare_interface_demo { +namespace type_caster_bare_interface { struct mpty {}; @@ -37,13 +37,13 @@ const char* pass_mpty_uqcp(std::unique_ptr) { return "load_uqcp"; } // clang-format on -} // namespace type_caster_bare_interface_demo +} // namespace type_caster_bare_interface } // namespace pybind11_tests namespace pybind11 { namespace detail { -using namespace pybind11_tests::type_caster_bare_interface_demo; +using namespace pybind11_tests::type_caster_bare_interface; template <> struct type_caster { @@ -177,9 +177,9 @@ struct type_caster> { } // namespace pybind11 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_rref", rtrn_mpty_rref); 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); } -} // namespace type_caster_bare_interface_demo +} // namespace type_caster_bare_interface } // namespace pybind11_tests diff --git a/tests/test_type_caster_bare_interface_demo.py b/tests/test_type_caster_bare_interface.py similarity index 94% rename from tests/test_type_caster_bare_interface_demo.py rename to tests/test_type_caster_bare_interface.py index 6152d88a6..5a19e1abc 100644 --- a/tests/test_type_caster_bare_interface_demo.py +++ b/tests/test_type_caster_bare_interface.py @@ -1,6 +1,6 @@ # -*- 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():