diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t
index a2c02877b0974e04c40699cfa6fe73ea99e01abd_dGVzdHMvdGVzdC1oZ2lnbm9yZS50..24f0023bb8b1487264f4f0bc6aff8e7fe31f684c_dGVzdHMvdGVzdC1oZ2lnbm9yZS50 100644
--- a/tests/test-hgignore.t
+++ b/tests/test-hgignore.t
@@ -92,10 +92,10 @@
 
   $ touch 'foo#bar' 'quux#'
 #if no-windows
-  $ touch 'baz\#wat'
+  $ touch 'baz\wat'
 #endif
   $ cat <<'EOF' >> .hgignore
   > # full-line comment
   >   # whitespace-only comment line
   > syntax# pattern, no whitespace, then comment
   > a.c  # pattern, then whitespace, then comment
@@ -96,10 +96,10 @@
 #endif
   $ cat <<'EOF' >> .hgignore
   > # full-line comment
   >   # whitespace-only comment line
   > syntax# pattern, no whitespace, then comment
   > a.c  # pattern, then whitespace, then comment
-  > baz\\# # escaped comment character
+  > baz\\# # (escaped) backslash, then comment
   > foo\#b # escaped comment character
   > quux\## escaped comment character at end of name
   > EOF
@@ -108,7 +108,7 @@
   ? .hgignore
   $ rm 'foo#bar' 'quux#'
 #if no-windows
-  $ rm 'baz\#wat'
+  $ rm 'baz\wat'
 #endif
 
 Check that '^\.' does not ignore the root directory: