File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ func init() {
90
90
"pathsep" : getpathsep (),
91
91
"linesep" : getlinesep (),
92
92
"defpath" : getdefpath (),
93
+ "devnull" : getdevnull (),
93
94
}
94
95
95
96
py .RegisterModule (& py.ModuleImpl {
Original file line number Diff line number Diff line change @@ -198,6 +198,16 @@ def _fail(test_name):
198
198
_fail ("os.linesep corresponding with os.name" )
199
199
failed += 1
200
200
201
+ if os .devnull == "/dev/null" and os .name == "posix" :
202
+ _pass ('os.devnull == "/dev/null" and os.name == "posix"' )
203
+ passed_tests += 1
204
+ elif os .devnull == "nul" and os .name == "nt" :
205
+ _pass ('os.devnull == "nul" and os.name == "nt"' )
206
+ passed_tests += 1
207
+ else :
208
+ _fail ("os.devnull corresponding with os.name" )
209
+ failed += 1
210
+
201
211
print ()
202
212
print (bcolors .ENDC + bcolors .BOLD + bcolors .HEADER + "Please check if $HOME will be outputted..." )
203
213
print (bcolors .ENDC )
You can’t perform that action at this time.
0 commit comments