##// END OF EJS Templates
undo failed changes...
MinRK -
Show More
@@ -298,7 +298,7 b' def test_default_values():'
298 298 )
299 299
300 300 def test_default_out_of_bounds():
301 @annotate(f=(0, 10.), h={'a': 1, 'b': 2}, j=['hi', 'there'])
301 @annotate(f=(0, 10.), h={'a': 1}, j=['hi', 'there'])
302 302 def f(f='hi', h=5, j='other'):
303 303 pass
304 304
@@ -310,13 +310,13 b' def test_default_out_of_bounds():'
310 310 ),
311 311 h=dict(
312 312 cls=widgets.DropdownWidget,
313 values={'a': 1, 'b': 2},
314 value=1
313 values={'a': 1},
314 value=1,
315 315 ),
316 316 j=dict(
317 317 cls=widgets.DropdownWidget,
318 318 values={'hi':'hi', 'there':'there'},
319 value='hi'
319 value='hi',
320 320 ),
321 321 )
322 322
@@ -90,6 +90,8 b' class _SelectionWidget(DOMWidget):'
90 90 # set the selected value name
91 91 self.value_name = k
92 92 return
93 # undo the change, and raise KeyError
94 self.value = old
93 95 raise KeyError(new)
94 96 finally:
95 97 self.value_lock.release()
General Comments 0
You need to be logged in to leave comments. Login now