set __module__ prop so it's usable in init
This commit is contained in:
parent
4779322247
commit
57ac37eb67
@ -121,6 +121,7 @@ def __init__(self, wrapped_pkg_object, root_builder):
|
|||||||
new_cls_name,
|
new_cls_name,
|
||||||
bases,
|
bases,
|
||||||
{
|
{
|
||||||
|
"__module__": package_cls.__module__,
|
||||||
"run_tests": property(lambda x: x.wrapped_package_object.run_tests),
|
"run_tests": property(lambda x: x.wrapped_package_object.run_tests),
|
||||||
"test_requires_compiler": property(
|
"test_requires_compiler": property(
|
||||||
lambda x: x.wrapped_package_object.test_requires_compiler
|
lambda x: x.wrapped_package_object.test_requires_compiler
|
||||||
@ -129,7 +130,6 @@ def __init__(self, wrapped_pkg_object, root_builder):
|
|||||||
"tester": property(lambda x: x.wrapped_package_object.tester),
|
"tester": property(lambda x: x.wrapped_package_object.tester),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
new_cls.__module__ = package_cls.__module__
|
|
||||||
self.__class__ = new_cls
|
self.__class__ = new_cls
|
||||||
self.__dict__.update(wrapped_pkg_object.__dict__)
|
self.__dict__.update(wrapped_pkg_object.__dict__)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user