mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-08-16 18:10:32 +03:00
Turn on all warnings when running test suite
This commit is contained in:
parent
8a4b326127
commit
5be45d0ff2
3
test.py
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user