regtesting: Remove dependency on typing_extensions

This commit is contained in:
Ole Schütt 2021-10-28 12:30:52 +02:00 committed by Ole Schütt
parent ee8e216fb2
commit 4ee6346eb2

View file

@ -19,9 +19,11 @@ import time
from typing import Coroutine, TextIO
try:
from typing import Literal
from typing import Literal # not available before Python 3.8
TestStatus = Literal["OK", "WRONG RESULT", "RUNTIME FAIL", "TIMEOUT"]
except:
from typing_extensions import Literal # type: ignore
TestStatus = str # type: ignore
# Some tests do not work with --keepalive (which is generally considered a bug).
KEEPALIVE_SKIP_DIRS = [
@ -300,9 +302,6 @@ class Batch:
return True
# ======================================================================================
TestStatus = Literal["OK", "WRONG RESULT", "RUNTIME FAIL", "TIMEOUT"]
# ======================================================================================
class TestResult:
def __init__(