Minor io fixlet to account for racing against last_os_error.
This commit is contained in:
parent
1a20f8e7cc
commit
716dc29ffc
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ mod tests {
|
|||
fn file_writer_bad_name() {
|
||||
alt io::file_writer("?/?", []) {
|
||||
result::err(e) {
|
||||
assert e == "error opening ?/?: No such file or directory";
|
||||
assert str::starts_with(e, "error opening ?/?");
|
||||
}
|
||||
result::ok(_) { fail; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue