From 25e50242f65c230a826c3ab0d6480c58a973dcae Mon Sep 17 00:00:00 2001 From: tro3 Date: Tue, 21 Mar 2017 07:10:48 -0700 Subject: [PATCH] Fix TestMissingFile on Windows (#148) Closing #147 --- parser_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser_test.go b/parser_test.go index 61a3a7c..58aae20 100644 --- a/parser_test.go +++ b/parser_test.go @@ -500,7 +500,8 @@ func TestFloatsWithoutLeadingZeros(t *testing.T) { func TestMissingFile(t *testing.T) { _, err := LoadFile("foo.toml") - if err.Error() != "open foo.toml: no such file or directory" { + if err.Error() != "open foo.toml: no such file or directory" && + err.Error() != "open foo.toml: The system cannot find the file specified." { t.Error("Bad error message:", err.Error()) } }