From 01a6929c0d889b4209aee650f7e652fad8fd4743 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Tue, 2 Dec 2014 09:29:02 -0800 Subject: [PATCH] Fix faulty interact tests --- IPython/html/widgets/tests/test_interaction.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/IPython/html/widgets/tests/test_interaction.py b/IPython/html/widgets/tests/test_interaction.py index e891c96f4..0c8c7b6c3 100644 --- a/IPython/html/widgets/tests/test_interaction.py +++ b/IPython/html/widgets/tests/test_interaction.py @@ -223,13 +223,12 @@ def test_list_tuple_3_float(): def test_list_tuple_str(): values = ['hello', 'there', 'guy'] first = values[0] - dvalues = OrderedDict((v,v) for v in values) c = interactive(f, tup=tuple(values), lis=list(values)) nt.assert_equal(len(c.children), 2) d = dict( cls=widgets.Dropdown, value=first, - values=dvalues + values=values ) check_widgets(c, tup=d, lis=d) @@ -292,7 +291,7 @@ def test_default_values(): ), j=dict( cls=widgets.Dropdown, - values={'hi':'hi', 'there':'there'}, + values=['hi', 'there'], value='there' ), ) @@ -315,7 +314,7 @@ def test_default_out_of_bounds(): ), j=dict( cls=widgets.Dropdown, - values={'hi':'hi', 'there':'there'}, + values=['hi', 'there'], value='hi', ), )