File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -210,11 +210,17 @@ def test_file_parsing_timeout(self):
210210
211211 def test_file_write_error (self ):
212212 """Test errors during file write."""
213- result = self .nsjail .python3 (["" ], [FileAttachment ("../dev" , "hello" .encode ())])
213+ result = self .nsjail .python3 (
214+ ["" ],
215+ [
216+ FileAttachment ("dir/test.txt" , b"abc" ),
217+ FileAttachment ("dir" , b"xyz" ),
218+ ],
219+ )
214220
215- self .assertEqual (result .returncode , None )
216- self .assertEqual (result .stdout , "IsADirectoryError: Failed to create file 'output'." )
221+ self .assertEqual (result .stdout , "IsADirectoryError: Failed to create file 'dir'." )
217222 self .assertEqual (result .stderr , None )
223+ self .assertEqual (result .returncode , None )
218224
219225 def test_sigsegv_returns_139 (self ): # In honour of Juan.
220226 code = dedent (
You can’t perform that action at this time.
0 commit comments