PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/imports_runme.py

#
Python | 17 lines | 11 code | 5 blank | 1 comment | 1 complexity | 5aacfbf50236fa994fc3bea0fb4b9de9 MD5 | raw file
 1# This is the import runtime testcase.
 2
 3import imports_b
 4import imports_a
 5import sys
 6
 7x = imports_b.B()
 8imports_a.A.hello(x)
 9
10a = imports_a.A()
11
12c = imports_b.C()
13a1 = c.get_a(c)
14a2 = c.get_a_type(c)
15
16if a1.hello() != a2.hello():
17  raise RuntimeError