Fix test suite getting type checked accidentally

This commit is contained in:
Kovid Goyal
2021-02-19 15:19:04 +05:30
parent 45d89cfe55
commit e06d40cb31
3 changed files with 13 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import importlib
import os
import sys
@@ -14,8 +15,8 @@ def init_env() -> None:
def main() -> None:
init_env()
from kitty_tests.main import run_tests # type: ignore
run_tests()
m = importlib.import_module('kitty_tests.main')
m.run_tests() # type: ignore
if __name__ == '__main__':