Skip to content

Commit 3e85e5a

Browse files
authored
chore: update python used in tests (#180)
Signed-off-by: Samuel Anderson <[email protected]>
1 parent a317a02 commit 3e85e5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: src/deadline_test_fixtures/deadline/worker.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,11 @@ def userdata(self, s3_files) -> str:
609609

610610
userdata = f"""<powershell>
611611
$ProgressPreference = 'SilentlyContinue'
612-
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe" -OutFile "C:\python-3.12.8-amd64.exe"
613-
$installerHash=(Get-FileHash "C:\python-3.12.8-amd64.exe" -Algorithm "MD5")
614-
$expectedHash="2f2ab2472a6aa29f8755c72c58f58f4b"
612+
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.9/python-3.12.9-amd64.exe" -OutFile "C:\python-3.12.9-amd64.exe"
613+
$installerHash=(Get-FileHash "C:\python-3.12.9-amd64.exe" -Algorithm "MD5")
614+
$expectedHash="1cfb1bbf96007b12b98db895dcd86487"
615615
if ($installerHash.Hash -ne $expectedHash) {{ throw "Could not verify Python installer." }}
616-
Start-Process -FilePath "C:\python-3.12.8-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait
616+
Start-Process -FilePath "C:\python-3.12.9-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait
617617
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -Outfile "C:\AWSCLIV2.msi"
618618
Start-Process msiexec.exe -ArgumentList "/i C:\AWSCLIV2.msi /quiet" -Wait
619619
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

Diff for: test/test_copyright_headers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
_copyright_header_re = re.compile(
99
r"Copyright Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.", re.IGNORECASE
1010
)
11-
_generated_by_scm = re.compile(r"# file generated by setuptools_scm", re.IGNORECASE)
11+
_generated_by_scm = re.compile(r"# file generated by setuptools[_-]scm", re.IGNORECASE)
1212

1313

1414
class CopyrightHeaderNotFoundException(Exception):

0 commit comments

Comments
 (0)