test(monitoring): avoid script bytecode cleanup noise
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib.util
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
@@ -9,6 +10,7 @@ SCRIPT_PATH = Path(__file__).resolve().parents[3] / "scripts" / "generate_monito
|
||||
SPEC = importlib.util.spec_from_file_location("generate_monitoring", SCRIPT_PATH)
|
||||
generate_monitoring = importlib.util.module_from_spec(SPEC)
|
||||
assert SPEC and SPEC.loader
|
||||
sys.dont_write_bytecode = True
|
||||
SPEC.loader.exec_module(generate_monitoring)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user