mirror of
https://github.com/actions/python-versions.git
synced 2025-04-06 23:39:38 +00:00
Check tcltk for any platform and version
This commit is contained in:
@ -49,6 +49,13 @@ Describe "Tests" {
|
|||||||
"python ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
"python ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# linux has no display name and no $DISPLAY environment variable - skip tk test
|
||||||
|
if (-not (($Platform -match "ubuntu") -or ($Platform -match "linux"))) {
|
||||||
|
It "Check if tcl/tk has the same headed and library versions" {
|
||||||
|
"python ./sources/tcltk.py" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (($Version -ge "3.2.0") -and -not ([semver]"$($Version.Major).$($Version.Minor)" -eq [semver]"3.11" -and $Version.PreReleaseLabel)) {
|
if (($Version -ge "3.2.0") -and -not ([semver]"$($Version.Major).$($Version.Minor)" -eq [semver]"3.11" -and $Version.PreReleaseLabel)) {
|
||||||
It "Check if sqlite3 module is installed" {
|
It "Check if sqlite3 module is installed" {
|
||||||
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
|
"python ./sources/python-sqlite3.py" | Should -ReturnZeroExitCode
|
||||||
@ -89,12 +96,4 @@ Describe "Tests" {
|
|||||||
"./dist/simple-test" | Should -ReturnZeroExitCode
|
"./dist/simple-test" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($Platform -match "macos") -or ($Platform -match "darwin")) {
|
|
||||||
if ($Version -gt "3.7.12" ) {
|
|
||||||
It "Check if python above 3.7.12 use tcl/tk v8.6" {
|
|
||||||
"python ./sources/tcltk-86.py" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,7 @@ import _tkinter
|
|||||||
header = _tkinter.TK_VERSION
|
header = _tkinter.TK_VERSION
|
||||||
lib = tkinter.Tk().getvar('tk_version')
|
lib = tkinter.Tk().getvar('tk_version')
|
||||||
|
|
||||||
print('header version=' + header)
|
if lib != header:
|
||||||
print('lib version=' + lib)
|
print('header version=' + header)
|
||||||
|
print('lib version=' + lib)
|
||||||
if lib != '8.6' or header != '8.6':
|
|
||||||
exit(1)
|
exit(1)
|
Reference in New Issue
Block a user