@@ -56,7 +56,7 @@ class InterfaceRuntime(object):
56
56
>>> pickleds = pickle.dumps(rt)
57
57
>>> newrt = pickle.loads(pickleds)
58
58
>>> newrt
59
- Bunch (cmdline='/bin/echo', cwd='/scratch/workflow', returncode=0)
59
+ InterfaceRuntime (cmdline='/bin/echo', cwd='/scratch/workflow', returncode=0)
60
60
61
61
Runtime objects can be compared
62
62
@@ -152,7 +152,7 @@ def items(self):
152
152
153
153
def __repr__ (self ):
154
154
"""representation of the runtime object"""
155
- return _repr_formatter (self )
155
+ return _repr_formatter (self , self . __class__ . __name__ )
156
156
157
157
# Enable when Python 2 support is dropped
158
158
# def __str__(self):
@@ -206,7 +206,7 @@ class InterfaceResult(object):
206
206
>>> newresult = pickle.loads(pickleds)
207
207
>>> newresult # doctest: +ELLIPSIS
208
208
InterfaceResult(interface='CommandLine', runtime=\
209
- Bunch (cmdline='/bin/echo', returncode=0), version=...)
209
+ InterfaceRuntime (cmdline='/bin/echo', returncode=0), version=...)
210
210
211
211
"""
212
212
__slots__ = ['interface' , 'runtime' , 'inputs' , 'outputs' , 'provenance' ]
0 commit comments