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 {
3636
3737// getpathsep returns the seperator used in $PATH. This is ';' for windows and ':' for posix
3838func getpathsep () py.String {
39- if runtime .GOOS ! = "windows" {
39+ if runtime .GOOS = = "windows" {
4040 return py .String (";" )
4141 }
4242 return py .String (":" )
Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ def _fail(test_name):
178178 _fail ("os.sep corresponding with os.name" )
179179 failed += 1
180180
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+
181191print ()
182192print (bcolors .ENDC + bcolors .BOLD + bcolors .HEADER + "Please check if $HOME will be outputted..." )
183193print (bcolors .ENDC )
You can’t perform that action at this time.
0 commit comments