Python - fix compilation error when using -extranative and -builtin.
Closes #816
This commit is contained in:
parent
20cd562e62
commit
bdda0a0829
5 changed files with 32 additions and 1 deletions
11
Examples/test-suite/python/python_extranative_runme.py
Normal file
11
Examples/test-suite/python/python_extranative_runme.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import python_extranative
|
||||
|
||||
vs = python_extranative.make_vector_string()
|
||||
if not isinstance(vs, python_extranative.VectorString):
|
||||
# will be of type tuple if extranative not working
|
||||
raise RuntimeError("Not of type VectorString")
|
||||
|
||||
for s1, s2 in zip(vs, ["one", "two"]):
|
||||
if s1 != s2:
|
||||
raise RuntimeError("Mismatch: " + s1 + " " + s2)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue