diff options
Diffstat (limited to 'tests/system/shared/classes.py')
-rw-r--r-- | tests/system/shared/classes.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/system/shared/classes.py b/tests/system/shared/classes.py index 47c6012c9f..eb74c9ad0d 100644 --- a/tests/system/shared/classes.py +++ b/tests/system/shared/classes.py @@ -231,3 +231,13 @@ class Qt5Path: path = "Docs/Qt-5.%d" % qtMinorVersion return os.path.join(Qt5Path.__createPlatformQtPath__(qtMinorVersion), path) + +class TestSection: + def __init__(self, description): + self.description = description + + def __enter__(self): + test.startSection(self.description) + + def __exit__(self, exc_type, exc_value, traceback): + test.endSection() |