kuroko/test/testPackageImports.krk.expect
2021-01-17 22:01:58 +09:00

24 lines
898 B
Plaintext

Imported foo.__init__ as foo
<module 'foo' from './modules/foo/__init__.krk'>
AttributeError: 'module' object has no attribute 'bar'
Imported bar.__init__ as foo.bar
imported baz.krk as foo.bar.baz
<module 'foo.bar.baz' from './modules/foo/bar/baz.krk'>
<module 'foo' from './modules/foo/__init__.krk'>
<module 'foo.bar' from './modules/foo/bar/__init__.krk'>
<module 'foo.bar.baz' from './modules/foo/bar/baz.krk'>
This is it!
<module 'foo' from './modules/foo/__init__.krk'>
<module 'foo.bar' from './modules/foo/bar/__init__.krk'>
<module 'foo.bar.baz' from './modules/foo/bar/baz.krk'>
This is it!
<module 'foo.bar.baz' from './modules/foo/bar/baz.krk'>
This is it!
NameError: Undefined variable 'foo'.
<module 'foo.bar.baz' from './modules/foo/bar/baz.krk'>
This is it!
NameError: Undefined variable 'foo'.
This is it!
NameError: Undefined variable 'qux'.
NameError: Undefined variable 'foo'.