Skip to content

Commit 716dc29

Browse files
committed
Minor io fixlet to account for racing against last_os_error.
1 parent 1a20f8e commit 716dc29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ mod tests {
752752
fn file_writer_bad_name() {
753753
alt io::file_writer("?/?", []) {
754754
result::err(e) {
755-
assert e == "error opening ?/?: No such file or directory";
755+
assert str::starts_with(e, "error opening ?/?");
756756
}
757757
result::ok(_) { fail; }
758758
}

0 commit comments

Comments
 (0)