Skip to content

Commit

Permalink
restrict assert statement to Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed May 17, 2020
1 parent 9e868f4 commit 131d01f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

import pytest

Expand All @@ -19,7 +20,8 @@ def test_icon():
int_val = QtWidgets.QStyle.SP_DriveNetIcon
icon = convert.to_qicon(int_val)
sizes = icon.availableSizes()
assert len(sizes) > 1
if sys.platform == 'win32':
assert len(sizes) > 1

b = Button(icon=int_val)
assert b.text() == ''
Expand All @@ -44,7 +46,8 @@ def test_icon_size():
int_val = QtWidgets.QStyle.SP_DriveNetIcon
icon = convert.to_qicon(int_val)
sizes = icon.availableSizes()
assert len(sizes) > 1
if sys.platform == 'win32':
assert len(sizes) > 1

#
# specify the size to the get_icon function
Expand Down

0 comments on commit 131d01f

Please sign in to comment.