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