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
|
|
@ -56,14 +56,13 @@ if a + " world" != "hello world":
|
|||
|
||||
# This is expected to fail with -builtin option
|
||||
# Reverse operators not supported in builtin types
|
||||
if "hello" + b != "hello world":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
if not li_std_string_extra.is_python_builtin():
|
||||
if "hello" + b != "hello world":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
# This is expected to fail with -builtin option
|
||||
# Reverse operators not supported in builtin types
|
||||
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