aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 7e7a488..eab28ed 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -51,6 +51,15 @@ from .mintro import get_infodir, load_info_file
from .programs import ExternalProgram
from .backend.backends import TestProtocol, TestSerialisation
+if T.TYPE_CHECKING:
+ TYPE_TAPResult = T.Union['TAPParser.Test',
+ 'TAPParser.Error',
+ 'TAPParser.Version',
+ 'TAPParser.Plan',
+ 'TAPParser.UnknownLine',
+ 'TAPParser.Bailout']
+
+
# GNU autotools interprets a return code of 77 from tests it executes to
# mean that the test should be skipped.
GNU_SKIP_RETURNCODE = 77
@@ -272,13 +281,6 @@ class TestResult(enum.Enum):
return str(self.colorize('>>> '))
-TYPE_TAPResult = T.Union['TAPParser.Test',
- 'TAPParser.Error',
- 'TAPParser.Version',
- 'TAPParser.Plan',
- 'TAPParser.UnknownLine',
- 'TAPParser.Bailout']
-
class TAPParser:
class Plan(T.NamedTuple):
num_tests: int