Skip to content

Commit 6524532

Browse files
committed
Add test
1 parent 0f97bcd commit 6524532

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/python-tests.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,12 @@ Describe "Tests" {
8989
"./dist/simple-test" | Should -ReturnZeroExitCode
9090
}
9191
}
92+
93+
if (($Platform -match "macos") -or ($Platform -match "darwin")) {
94+
if ($Version -gt "3.7.12" ) {
95+
It "Check if python above 3.7.12 use tcl/tk v8.6" {
96+
"python ./sources/tcltk-86.py" | Should -ReturnZeroExitCode
97+
}
98+
}
99+
}
92100
}

tests/sources/tcltk-86.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import tkinter
2+
import _tkinter
3+
4+
lib = tkinter.Tk().getvar('tk_version')
5+
header = _tkinter.TK_VERSION
6+
7+
if lib != '8.6' or header != '8.6':
8+
exit(1)

0 commit comments

Comments
 (0)