46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From dd3eb37c615243a0c71d61639578d1bf4618f806 Mon Sep 17 00:00:00 2001
|
|
Date: Thu, 5 Aug 2021 14:51:41 +0800
|
|
Subject: [PATCH] disable test_sanity
|
|
|
|
---
|
|
Tests/test_qt_image_qapplication.py | 26 --------------------------
|
|
1 file changed, 26 deletions(-)
|
|
|
|
diff --git a/Tests/test_qt_image_qapplication.py b/Tests/test_qt_image_qapplication.py
|
|
index 06bd27c..8d4bb58 100644
|
|
--- a/Tests/test_qt_image_qapplication.py
|
|
+++ b/Tests/test_qt_image_qapplication.py
|
|
@@ -35,29 +35,3 @@ def roundtrip(expected):
|
|
result = ImageQt.fromqpixmap(ImageQt.toqpixmap(expected))
|
|
# Qt saves all pixmaps as rgb
|
|
assert_image_equal(result, expected.convert("RGB"))
|
|
-
|
|
-
|
|
-@pytest.mark.skipif(not ImageQt.qt_is_installed, reason="Qt bindings are not installed")
|
|
-def test_sanity(tmp_path):
|
|
- # Segfault test
|
|
- app = QApplication([])
|
|
- ex = Example()
|
|
- assert app # Silence warning
|
|
- assert ex # Silence warning
|
|
-
|
|
- for mode in ("1", "RGB", "RGBA", "L", "P"):
|
|
- # to QPixmap
|
|
- data = ImageQt.toqpixmap(hopper(mode))
|
|
-
|
|
- assert isinstance(data, QPixmap)
|
|
- assert not data.isNull()
|
|
-
|
|
- # Test saving the file
|
|
- tempfile = str(tmp_path / f"temp_{mode}.png")
|
|
- data.save(tempfile)
|
|
-
|
|
- # from QPixmap
|
|
- roundtrip(hopper(mode))
|
|
-
|
|
- app.quit()
|
|
- app = None
|
|
--
|
|
2.27.0
|
|
|