##// END OF EJS Templates
Fix tests relying on dict order in IPython.config
Thomas Kluyver -
Show More
@@ -160,7 +160,7 b' class Configurable(HasTraits):'
160 final_help = []
160 final_help = []
161 final_help.append(u'%s options' % cls.__name__)
161 final_help.append(u'%s options' % cls.__name__)
162 final_help.append(len(final_help[0])*u'-')
162 final_help.append(len(final_help[0])*u'-')
163 for k,v in cls.class_traits(config=True).iteritems():
163 for k,v in sorted(cls.class_traits(config=True).iteritems()):
164 help = cls.class_get_trait_help(v, inst)
164 help = cls.class_get_trait_help(v, inst)
165 final_help.append(help)
165 final_help.append(help)
166 return '\n'.join(final_help)
166 return '\n'.join(final_help)
@@ -417,8 +417,9 b' class KeyValueConfigLoader(CommandLineConfigLoader):'
417
417
418 >>> from IPython.config.loader import KeyValueConfigLoader
418 >>> from IPython.config.loader import KeyValueConfigLoader
419 >>> cl = KeyValueConfigLoader()
419 >>> cl = KeyValueConfigLoader()
420 >>> cl.load_config(["--A.name='brian'","--B.number=0"])
420 >>> d = cl.load_config(["--A.name='brian'","--B.number=0"])
421 {'A': {'name': 'brian'}, 'B': {'number': 0}}
421 >>> sorted(d.items())
422 [('A', {'name': 'brian'}), ('B', {'number': 0})]
422 """
423 """
423 self.clear()
424 self.clear()
424 if argv is None:
425 if argv is None:
General Comments 0
You need to be logged in to leave comments. Login now