Skip to content

Commit

Permalink
skip PySide6 tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Apr 27, 2024
1 parent ac318c5 commit 67d5e23
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/app/noaa_support/test_noaa_s57_dialog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -10,7 +11,7 @@

class TestAppNOAAS57Dialog(unittest.TestCase):

# @unittest.skipIf(platform.system() in ['Linux', ], "It crashes on Linux")
@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_visibility(self):
if not QtWidgets.QApplication.instance():
QtWidgets.QApplication([])
Expand Down
4 changes: 3 additions & 1 deletion tests/app/pkg_info/test_pkg_about_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -11,7 +12,7 @@


class TestAppPkgAboutDialog(unittest.TestCase):

@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_visibility(self):

if not QtWidgets.QApplication.instance():
Expand All @@ -22,6 +23,7 @@ def test_visibility(self):
d.switch_visible()
d.switch_visible()

@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_with_all_tabs(self):

if not QtWidgets.QApplication.instance():
Expand Down
3 changes: 2 additions & 1 deletion tests/app/pkg_info/test_pkg_exception_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -8,7 +9,7 @@

class TestAppPkgExceptionDialog(unittest.TestCase):

# @unittest.skipIf(platform.system() in ['Linux', ], "It crashes on Linux")
@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_visibility(self):
if not QtWidgets.QApplication.instance():
QtWidgets.QApplication([])
Expand Down
4 changes: 2 additions & 2 deletions tests/app/pkg_info/test_pkg_info_tab.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -9,7 +9,7 @@

class TestAppTabsPkgInfoTab(unittest.TestCase):

@unittest.skipIf(platform.system() in ['Linux', ], "It crashes on Linux")
@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_show(self):
if not QtWidgets.QApplication.instance():
QtWidgets.QApplication([])
Expand Down
3 changes: 2 additions & 1 deletion tests/app/report/test_report.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -14,7 +15,7 @@ def setUpClass(cls) -> None:
root_folder = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)
cls.testing = Testing(root_folder=root_folder)

# @unittest.skipIf(platform.system() in ['Linux', ], "It crashes on Linux")
@unittest.skipIf(sys.platform == "linux", "Skip PySide6 on Linux")
def test_init(self):

# noinspection PyArgumentList
Expand Down

0 comments on commit 67d5e23

Please sign in to comment.