aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/qregularexpression_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/qregularexpression_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/qregularexpression_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtCore/qregularexpression_test.py b/sources/pyside6/tests/QtCore/qregularexpression_test.py
index 457ff7460..20b582259 100644
--- a/sources/pyside6/tests/QtCore/qregularexpression_test.py
+++ b/sources/pyside6/tests/QtCore/qregularexpression_test.py
@@ -41,6 +41,7 @@ init_test_paths(False)
from PySide6.QtCore import QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator
+
class QRegularExpressionTest(unittest.TestCase):
def testMatch(self):
@@ -55,11 +56,12 @@ class QRegularExpressionTest(unittest.TestCase):
re = QRegularExpression('(\w+)')
self.assertTrue(re.isValid())
count = 0
- it = re.globalMatch('word1 word2 word3');
+ it = re.globalMatch('word1 word2 word3')
while it.hasNext():
it.next()
- count = count + 1
+ count = count + 1
self.assertEqual(count, 3)
+
if __name__ == '__main__':
unittest.main()