Turn on all warnings when running test suite

This commit is contained in:
Kovid Goyal 2021-06-26 12:55:53 +05:30
parent 8a4b326127
commit 5be45d0ff2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -5,6 +5,7 @@
import importlib
import os
import sys
import warnings
base = os.path.dirname(os.path.abspath(__file__))
@ -14,6 +15,8 @@ def init_env() -> None:
def main() -> None:
warnings.simplefilter('error')
os.environ['PYTHONWARNINGS'] = 'error'
init_env()
m = importlib.import_module('kitty_tests.main')
m.run_tests() # type: ignore