aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtGui/qtextdocument_functions.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-19 08:35:05 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-12-20 13:16:11 +0100
commitfcfb6d1c5b983753dd3e65a592a11c17f32bd0ff (patch)
treec313983f4dbd92861cba94bde13f6b756bbe7cc9 /sources/pyside6/tests/QtGui/qtextdocument_functions.py
parenta88b7fc378bfa2481e581adc9de981dbd263ddc4 (diff)
PySide6/Tests: Use fully qualified enumerations
As a drive-by fix flake errors. Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: I9829b011fee78fc8edd1aefdd3066ae89e63644b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtGui/qtextdocument_functions.py')
-rw-r--r--sources/pyside6/tests/QtGui/qtextdocument_functions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/tests/QtGui/qtextdocument_functions.py b/sources/pyside6/tests/QtGui/qtextdocument_functions.py
index 0350c93ac..7d4a85177 100644
--- a/sources/pyside6/tests/QtGui/qtextdocument_functions.py
+++ b/sources/pyside6/tests/QtGui/qtextdocument_functions.py
@@ -8,10 +8,10 @@ import unittest
from pathlib import Path
sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
-from init_paths import init_test_paths
+from init_paths import init_test_paths # noqa: E402
init_test_paths(False)
-from PySide6.QtGui import QPageRanges, Qt
+from PySide6.QtGui import QPageRanges, Qt # noqa: E402
class QTextDocumentFunctions(unittest.TestCase):
@@ -19,7 +19,7 @@ class QTextDocumentFunctions(unittest.TestCase):
def testFunctions(self):
self.assertFalse(Qt.mightBeRichText('bla'))
self.assertTrue(Qt.mightBeRichText('<html><head/><body><p>bla</p></body></html>'))
- html = Qt.convertFromPlainText("A & B", Qt.WhiteSpaceNormal)
+ html = Qt.convertFromPlainText("A & B", Qt.WhiteSpaceMode.WhiteSpaceNormal)
self.assertEqual(html, '<p>A &amp; B</p>')