File tree Expand file tree Collapse file tree
modflow_devtools/programs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import warnings
2+ from datetime import UTC
23from pathlib import Path
34
45import pytest
@@ -304,7 +305,7 @@ def test_program_manager_error_handling(self):
304305
305306 def test_installation_metadata_integration (self ):
306307 """Test InstallationMetadata integration with ProgramManager."""
307- from datetime import datetime , timezone
308+ from datetime import datetime
308309 from pathlib import Path
309310
310311 from modflow_devtools .programs import (
@@ -322,7 +323,7 @@ def test_installation_metadata_integration(self):
322323 version = "1.0.0" ,
323324 platform = "linux" ,
324325 bindir = Path ("/tmp/test" ),
325- installed_at = datetime .now (timezone . utc ),
326+ installed_at = datetime .now (UTC ),
326327 source = {
327328 "repo" : "test/repo" ,
328329 "tag" : "1.0.0" ,
Original file line number Diff line number Diff line change 33import shutil
44import warnings
55from dataclasses import dataclass , field
6- from datetime import datetime
6+ from datetime import UTC , datetime
77from os import PathLike
88from pathlib import Path
99
@@ -1416,7 +1416,6 @@ def install(
14161416 If installation fails
14171417 """
14181418 import shutil
1419- from datetime import timezone
14201419
14211420 # 1. Load config and find program in registries
14221421 config = self .config
@@ -1576,7 +1575,7 @@ def install(
15761575 version = version ,
15771576 platform = platform ,
15781577 bindir = bindir ,
1579- installed_at = datetime .now (timezone . utc ),
1578+ installed_at = datetime .now (UTC ),
15801579 source = source_info ,
15811580 executables = [exe_name ],
15821581 )
You can’t perform that action at this time.
0 commit comments