Use exceptions instead of printing to stdout. Part of an effort to convert Python tests to python 3 syntax.
11 lines
179 B
Python
11 lines
179 B
Python
import dynamic_cast
|
|
|
|
f = dynamic_cast.Foo()
|
|
b = dynamic_cast.Bar()
|
|
|
|
x = f.blah()
|
|
y = b.blah()
|
|
|
|
a = dynamic_cast.do_test(y)
|
|
if a != "Bar::test":
|
|
raise RuntimeError("Failed!!")
|