From 5be45d0ff2274e7bf04c7ddf56fbce95512cef6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 26 Jun 2021 12:55:53 +0530 Subject: [PATCH] Turn on all warnings when running test suite --- test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.py b/test.py index b4c611565..993fa450e 100755 --- a/test.py +++ b/test.py @@ -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