Skip to content

Commit 88b9e8c

Browse files
authored
Update python-tests.ps1
1 parent cead467 commit 88b9e8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/python-tests.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ param (
77
$Architecture
88
)
99

10+
$HardwareArchitecture = $Architecture -replace "-freethreaded", ""
11+
1012
Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
1113
Import-Module (Join-Path $PSScriptRoot "../helpers/common-helpers.psm1")
1214
Import-Module (Join-Path $PSScriptRoot "../builders/python-version.psm1")
@@ -58,7 +60,7 @@ Describe "Tests" {
5860
# }
5961
# }
6062

61-
if (($Version -ge "3.2.0") -and ($Version -lt "3.11.0") -and (($Platform -ne "darwin") -or ($Architecture -ne "arm64"))) {
63+
if (($Version -ge "3.2.0") -and ($Version -lt "3.11.0") -and (($Platform -ne "darwin") -or ($HardwareArchitecture -ne "arm64"))) {
6264
It "Check if sqlite3 module is installed" {
6365
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
6466
}

0 commit comments

Comments
 (0)