Revision e72bcf60
b/snf-tools/test_suite.py | ||
---|---|---|
630 | 630 |
inspect.getmembers(cls, lambda x: inspect.ismethod(x)): |
631 | 631 |
if hasattr(m, __doc__): |
632 | 632 |
m.__func__.__doc__ = "[%s] %s" % (imagename, m.__doc__) |
633 |
setattr(__main__,name,cls) |
|
633 |
|
|
634 |
# Make sure the class can be pickled, by listing it among |
|
635 |
# the attributes of __main__. A PicklingError is raised otherwise. |
|
636 |
setattr(__main__, name, cls) |
|
634 | 637 |
return cls |
635 | 638 |
|
636 | 639 |
|
Also available in: Unified diff