ast: string literals that are not valid UTF are not convertible to strings

This commit is contained in:
Yoichi Hirai
2016-11-25 13:36:06 +01:00
parent aaf58a8c4e
commit e136ec8704
4 changed files with 12 additions and 3 deletions
@@ -2045,7 +2045,7 @@ BOOST_AUTO_TEST_CASE(invalid_utf8)
string s = "\xa0\x00";
}
)";
CHECK_ERROR(sourceCode, TypeError, "Invalid UTF-8");
CHECK_ERROR(sourceCode, TypeError, "invalid UTF-8");
}
BOOST_AUTO_TEST_CASE(string_index)