mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 05:35:28 -04:00
regtesting: Remove dependency on typing_extensions
This commit is contained in:
parent
ee8e216fb2
commit
4ee6346eb2
1 changed files with 4 additions and 5 deletions
|
|
@ -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__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue