Skip to content

Commit

Permalink
check is pythonnet is installed before asserting test
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed May 31, 2020
1 parent 4f4e56f commit 93ef539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_rescale_icon():
assert new_size.height() == size2[1]

# passing different objects does not raise an error
if sys.platform == 'win32':
if sys.platform == 'win32' and has_pythonnet():
assert isinstance(convert.rescale_icon('explorer|0', 1.0), QtGui.QPixmap)
assert isinstance(convert.rescale_icon(QtWidgets.QStyle.SP_TitleBarMenuButton, 1.0), QtGui.QPixmap)
assert isinstance(convert.rescale_icon(25, 1.0), QtGui.QPixmap)
Expand Down

0 comments on commit 93ef539

Please sign in to comment.