aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/pysidetest/embedding_test.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2023-05-25 11:19:39 +0300
committerSimo Fält <simo.falt@qt.io>2023-05-25 11:19:39 +0300
commit40fdea15e6545292212ea6c4acc78c3b2975cbd8 (patch)
treea2209393036458904f52cc418c708a20abcc1fac /sources/pyside2/tests/pysidetest/embedding_test.py
parentd8f02ce77a4143aa4e7e6c4f7892e6a943c46b3c (diff)
parent63d49d3651257452b9be3982cac573971995e230 (diff)
Merge tag 'v5.15.6-lts' into tqtc/lts-5.15-opensourcev5.15.6-lts-lgpl
Qt For Python Release 5.15.6 Change-Id: I7a6874dfca79fbc46f5a6101e713b0c1dde9a640
Diffstat (limited to 'sources/pyside2/tests/pysidetest/embedding_test.py')
-rw-r--r--sources/pyside2/tests/pysidetest/embedding_test.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/pyside2/tests/pysidetest/embedding_test.py b/sources/pyside2/tests/pysidetest/embedding_test.py
index 1960838ff..570686927 100644
--- a/sources/pyside2/tests/pysidetest/embedding_test.py
+++ b/sources/pyside2/tests/pysidetest/embedding_test.py
@@ -65,16 +65,15 @@ class EmbeddingTest(unittest.TestCase):
# Unfortunately, I see no way how to shut things enough down
# to trigger a second initiatization. Therefore, only one test :-/
def test_pyside_embedding(self):
- import sys, os
+ import sys
self.assertFalse(hasattr(sys, "pyside_uses_embedding"))
sys.pyside_uses_embedding = "anything true"
import PySide2
# everything has to be imported
self.assertTrue("PySide2.support.signature" in sys.modules)
self.assertEqual(sys.pyside_uses_embedding, True)
- dn = os.path.dirname
- name = os.path.basename(dn(dn(dn(PySide2.support.signature.__file__))))
- self.assertTrue(name.startswith("embedded.") and name.endswith(".zip"))
+ # We no longer use a physical zip file.
+
if __name__ == '__main__':
unittest.main()