Bypass Python tests failing with -builtin
Reverse operators not supported in builtin types
This commit is contained in:
parent
bbad7f96ab
commit
9f1b051c16
5 changed files with 25 additions and 15 deletions
|
|
@ -60,13 +60,14 @@ if a + " world" != "hello world":
|
|||
raise RuntimeError("bad string mapping")
|
||||
|
||||
# This is expected to fail if -builtin is used
|
||||
if "hello" + b != "hello world":
|
||||
raise RuntimeError("bad string mapping")
|
||||
# Reverse operators not supported in builtin types
|
||||
if not li_std_wstring.is_python_builtin():
|
||||
if "hello" + b != "hello world":
|
||||
raise RuntimeError("bad string mapping")
|
||||
|
||||
# This is expected to fail if -builtin is used
|
||||
c = "hello" + b
|
||||
if c.find_last_of("l") != 9:
|
||||
raise RuntimeError("bad string mapping")
|
||||
c = "hello" + b
|
||||
if c.find_last_of("l") != 9:
|
||||
raise RuntimeError("bad string mapping")
|
||||
|
||||
s = "hello world"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue