diff --git a/pytools/__init__.py b/pytools/__init__.py
index 90103e0c396e3a7b1946dadb6a5fee2a8cef87df..7ccb04adf0bafd136eb0817427d1e517b9bb0092 100644
--- a/pytools/__init__.py
+++ b/pytools/__init__.py
@@ -1530,7 +1530,7 @@ class Table:
             >>> tbl.add_row([1, '|'])
             >>> tbl.add_row([10, 20])
             >>> s = tbl.github_markdown().splitlines()
-            >>> assert s[0] == "1  | \|"
+            >>> assert s[0] == "1  | \\|"
             >>> assert s[1] == ":--|---:"
             >>> assert s[2] == "10 | 20"
 
@@ -1572,7 +1572,6 @@ class Table:
 
         return output.getvalue().rstrip('\n')
 
-
     def latex(self, skip_lines=0, hline_after=None):
         if hline_after is None:
             hline_after = []