From fe1c7d7ccbc813516765c57c4e433b081509de1e 2012-05-27 09:44:57 From: Thomas Kluyver Date: 2012-05-27 09:44:57 Subject: [PATCH] Fix tests that depended on dictionary order in IPython.core --- diff --git a/IPython/core/excolors.py b/IPython/core/excolors.py index 3524fff..0efc1cd 100644 --- a/IPython/core/excolors.py +++ b/IPython/core/excolors.py @@ -31,10 +31,10 @@ def exception_colors(): >>> ec.set_active_scheme('NoColor') >>> ec.active_scheme_name 'NoColor' - >>> ec.active_colors.keys() - ['em', 'filenameEm', 'excName', 'valEm', 'nameEm', 'line', 'topline', - 'name', 'caret', 'val', 'vName', 'Normal', 'filename', 'linenoEm', - 'lineno', 'normalEm'] + >>> sorted(ec.active_colors.keys()) + ['Normal', 'caret', 'em', 'excName', 'filename', 'filenameEm', 'line', + 'lineno', 'linenoEm', 'name', 'nameEm', 'normalEm', 'topline', 'vName', + 'val', 'valEm'] """ ex_colors = ColorSchemeTable()