File tree 2 files changed +19
-14
lines changed
8000
span>2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,22 @@ Describe "Tests" {
45
45
$pythonLocation.startsWith ($expectedPath ) | Should - BeTrue
46
46
}
47
47
48
- It " Run simple code" {
49
- " python ./sources/simple-test.py" | Should - ReturnZeroExitCode
48
+ # linux has no display name and no $DISPLAY environment variable - skip tk test
49
+ echo " Platform $Platform "
50
+ echo $Platform -match " ubuntu"
51
+ echo $Platform -match " linux"
52
+ echo $Platform -match " ubuntu"
53
+ echo $Platform -match " linux"
54
+ echo ($Platform -match " ubuntu" ) -or ($Platform -match " linux" )
55
+ echo -not (($Platform -match " ubuntu" ) -or ($Platform -match " linux" ))
56
+ if (-not (($Platform -match " ubuntu" ) -or ($Platform -match " linux" ))) {
57
+ It " Run simple code" {
58
+ " python ./sources/simple-test.py" | Should - ReturnZeroExitCode
59
+ }
60
+ }
61
+
62
+ It " Check if tcl/tk has the same headed and library versions" {
63
+ " python ./sources/tcltk.py" | Should - ReturnZeroExitCode
50
64
}
51
65
52
66
if (($Version -ge " 3.2.0" ) -and -not ([semver ]" $ ( $Version.Major ) .$ ( $Version.Minor ) " -eq [semver ]" 3.11" -and $Version.PreReleaseLabel )) {
@@ -89,12 +103,4 @@ Describe "Tests" {
89
103
" ./dist/simple-test" | Should - ReturnZeroExitCode
90
104
}
91
105
}
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
- }
100
106
}
Original file line number Diff line number Diff line change 4
4
header = _tkinter .TK_VERSION
5
5
lib = tkinter .Tk ().getvar ('tk_version' )
6
6
7
- print ('header version=' + header )
8
- print ('lib version=' + lib )
9
-
10
- if lib != '8.6' or header != '8.6' :
7
+ if lib != header :
8
+ print ('header version=' + header )
9
+ print ('lib version=' + lib )
11
10
exit (1 )
You can’t perform that action at this time.
0 commit comments