|
@@ -2,6 +2,7 @@ import sys
|
|
import unittest
|
|
import unittest
|
|
import dataclasses
|
|
import dataclasses
|
|
from typing import Type
|
|
from typing import Type
|
|
|
|
+import omegaconf
|
|
from super_gradients.common.crash_handler.crash_tips import (
|
|
from super_gradients.common.crash_handler.crash_tips import (
|
|
get_relevant_crash_tip_message,
|
|
get_relevant_crash_tip_message,
|
|
CrashTip,
|
|
CrashTip,
|
|
@@ -9,6 +10,7 @@ from super_gradients.common.crash_handler.crash_tips import (
|
|
RecipeFactoryFormatTip,
|
|
RecipeFactoryFormatTip,
|
|
DDPNotInitializedTip,
|
|
DDPNotInitializedTip,
|
|
WrongHydraVersionTip,
|
|
WrongHydraVersionTip,
|
|
|
|
+ InterpolationKeyErrorTip,
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
@@ -46,6 +48,10 @@ class CrashTipTest(unittest.TestCase):
|
|
exc_value=TypeError("__init__() got an unexpected keyword argument 'version_base'"),
|
|
exc_value=TypeError("__init__() got an unexpected keyword argument 'version_base'"),
|
|
expected_crash_tip=WrongHydraVersionTip,
|
|
expected_crash_tip=WrongHydraVersionTip,
|
|
),
|
|
),
|
|
|
|
+ DocumentedException(
|
|
|
|
+ exc_value=omegaconf.errors.InterpolationKeyError("omegaconf.errors.InterpolationKeyError: Interpolation key 'x' not found"),
|
|
|
|
+ expected_crash_tip=InterpolationKeyErrorTip,
|
|
|
|
+ ),
|
|
]
|
|
]
|
|
|
|
|
|
def test_found_exceptions(self):
|
|
def test_found_exceptions(self):
|