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

This commit is contained in:
Yoichi Hirai committed 2016-11-25 13:36:06 +01:00
1 parent aaf58a8c4e
commit e136ec8704
4 files changed
+12 -3

No files matched your search

@@ -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)