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 importlib
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
base = os.path.dirname(os.path.abspath(__file__))
|
base = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
@ -14,6 +15,8 @@ def init_env() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
warnings.simplefilter('error')
|
||||||
|
os.environ['PYTHONWARNINGS'] = 'error'
|
||||||
init_env()
|
init_env()
|
||||||
m = importlib.import_module('kitty_tests.main')
|
m = importlib.import_module('kitty_tests.main')
|
||||||
m.run_tests() # type: ignore
|
m.run_tests() # type: ignore
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user