File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func getname() py.String {
36
36
37
37
// getpathsep returns the seperator used in $PATH. This is ';' for windows and ':' for posix
38
38
func getpathsep () py.String {
39
- if runtime .GOOS ! = "windows" {
39
+ if runtime .GOOS = = "windows" {
40
40
return py .String (";" )
41
41
}
42
42
return py .String (":" )
Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ def _fail(test_name):
178
178
_fail ("os.sep corresponding with os.name" )
179
179
failed += 1
180
180
181
+ if os .pathsep == ":" and os .name == "posix" :
182
+ _pass ('os.pathsep == ":" and os.name == "posix"' )
183
+ passed_tests += 1
184
+ elif os .pathsep == ";" and os .name == "nt" :
185
+ _pass ('os.pathsep == ";" and os.name == "nt"' )
186
+ passed_tests += 1
187
+ else :
188
+ _fail ("os.pathsep corresponding with os.name" )
189
+ failed += 1
190
+
181
191
print ()
182
192
print (bcolors .ENDC + bcolors .BOLD + bcolors .HEADER + "Please check if $HOME will be outputted..." )
183
193
print (bcolors .ENDC )
You can’t perform that action at this time.
0 commit comments