Skip to content

Commit

Permalink
Merge cf6d065 into adb0641
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 22, 2020
2 parents adb0641 + cf6d065 commit 78fad60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion param/parameterized.py
Expand Up @@ -140,7 +140,8 @@ def discard_events(parameterized):
"""
batch_watch = parameterized.param._BATCH_WATCH
parameterized.param._BATCH_WATCH = True
watchers, events = parameterized.param._watchers, parameterized.param._events
watchers, events = (list(parameterized.param._watchers),
list(parameterized.param._events))
try:
yield
except:
Expand Down
2 changes: 1 addition & 1 deletion tests/API1/testwatch.py
Expand Up @@ -106,7 +106,7 @@ def accumulator(change):
obj.a = 1
self.assertEqual(self.accumulator, 0)
obj.a = 2
self.assertEqual(self.accumulator, 3)
self.assertEqual(self.accumulator, 2)

def test_triggered_when_changed_iterator_type(self):
def accumulator(change):
Expand Down

0 comments on commit 78fad60

Please sign in to comment.