File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,9 @@ def __repr__(self):
83
83
""" Return a well-formatted representation of the traits """
84
84
outstr = []
85
85
for name , value in sorted (self .trait_get ().items ()):
86
- if not name == '__all__' :
87
- outstr .append ('%s = %s' % (name , value ))
86
+ outstr .append ('%s = %s' % (name , value ))
88
87
return '\n {}\n ' .format ('\n ' .join (outstr ))
89
88
90
-
91
89
def _generate_handlers (self ):
92
90
"""Find all traits with the 'xor' metadata and attach an event
93
91
handler to them.
@@ -236,7 +234,6 @@ def get_hashval(self, hash_method=None):
236
234
The md5 hash value of the traited spec
237
235
238
236
"""
239
-
240
237
list_withhash = []
241
238
list_nofilename = []
242
239
for name , val in sorted (self .trait_get ().items ()):
@@ -313,8 +310,7 @@ def _get_sorteddict(self,
313
310
314
311
@property
315
312
def __all__ (self ):
316
- return [k for k ,v in self .items () if not k == "__all__" ]
317
-
313
+ return self .copyable_trait_names ()
318
314
319
315
320
316
class TraitedSpec (BaseTraitedSpec ):
Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ def test_TraitedSpec_tab_completion():
58
58
bet_outputs = bet_nd .outputs .class_editable_traits ()
59
59
60
60
# Check __all__ for bet node and interface inputs
61
- assert bet_nd .inputs .__all__ == bet_inputs
62
- assert bet_interface .inputs .__all__ == bet_inputs
61
+ assert set ( bet_nd .inputs .__all__ ) == set ( bet_inputs )
62
+ assert set ( bet_interface .inputs .__all__ ) == set ( bet_inputs )
63
63
64
64
# Check __all__ for bet node outputs
65
- assert bet_nd .outputs .__all__ == bet_outputs
65
+ assert set ( bet_nd .outputs .__all__ ) == set ( bet_outputs )
66
66
67
67
68
68
@pytest .mark .skip
You can’t perform that action at this time.
0 commit comments