Skip to content

Commit

Permalink
Fix call to emit() for PySide
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jun 14, 2016
1 parent 71eb647 commit 6c3fa3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion glue/viewers/common/qt/tests/test_attribute_limits_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def test_scale_mode_cached(self):
def test_flip_button(self):

# Flipping should swap lower and upper value
self.flip_button.clicked.emit(True)
try:
self.flip_button.clicked.emit(True)
except TypeError: # PySide
self.flip_button.clicked.emit()

assert self.helper.vlo == +100
assert self.helper.vhi == -100

Expand Down

0 comments on commit 6c3fa3f

Please sign in to comment.