Remove conditional checks for python 3.12

This commit is contained in:
Matthias
2024-03-10 13:11:56 +01:00
parent 2b5b518ccf
commit 08cff9890f
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def patch_torch_initlogs(mocker) -> None:
module_name = 'torch'
mocked_module = types.ModuleType(module_name)
sys.modules[module_name] = mocked_module
elif not is_py12():
else:
mocker.patch("torch._logging._init_logs")