Sign in
fuchsia
/
third_party
/
swig
/
2824b0cbb66e715490e1ef13250bd675d87b32d9
/
.
/
trunk
/
Examples
/
test-suite
/
python
/
imports_runme.py
blob: 50a3ab59f9c1dfad6f58e01c5f7136c71ae64345 [
file
] [
log
] [
blame
]
# This is the import runtime testcase.
import
imports_b
import
imports_a
import
sys
x
=
imports_b
.
B
()
imports_a
.
A
.
hello
(
x
)
a
=
imports_a
.
A
()
c
=
imports_b
.
C
()
a1
=
c
.
get_a
(
c
)
a2
=
c
.
get_a_type
(
c
)
if
a1
.
hello
()
!=
a2
.
hello
():
raise
RuntimeError