Python unicode_strings test case: restrict to Python > 3.0
Also adjust the test method names and content to match the docs.
This commit is contained in:
parent
20ddfb7fcd
commit
5c5dfc106f
2 changed files with 9 additions and 6 deletions
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
%inline %{
|
||||
|
||||
const char* test_c_str(void) {
|
||||
return "h\xe9llo";
|
||||
const char* non_utf8_c_str(void) {
|
||||
return "h\xe9llo w\xc3\xb6rld";
|
||||
}
|
||||
|
||||
std::string test_std_string(void) {
|
||||
return std::string("h\xe9llo");
|
||||
std::string non_utf8_std_string(void) {
|
||||
return std::string("h\xe9llo w\xc3\xb6rld");
|
||||
}
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue