mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Turn on all warnings when running test suite
This commit is contained in:
parent
8a4b326127
commit
5be45d0ff2
1 changed files with 3 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue