def test_regressions(): from pybind11_tests.issues import print_cchar, print_char # #137: const char* isn't handled properly assert print_cchar("const char *") == "const char *" # #150: char bindings broken assert print_char("c") == "c"
def test_regressions(): from pybind11_tests.issues import print_cchar, print_char # #137: const char* isn't handled properly if print_cchar("const char *") != "const char *": raise AssertionError # #150: char bindings broken if print_char("c") != "c": raise AssertionError