diff --git a/test/test_pymbolic.py b/test/test_pymbolic.py
index d2a27c39f44022900738035e757b9db3f6c27ab3..bb92ac841a8c2be2cce9e4a704561408fd4e2b09 100644
--- a/test/test_pymbolic.py
+++ b/test/test_pymbolic.py
@@ -541,7 +541,7 @@ def test_latex_mapper():
         tex_file_path = os.path.join(latex_dir, "input.tex")
 
         with open(tex_file_path, "w") as tex_file:
-            contents = TEX_TEMPLATE % "\n".join(equations)
+            contents = LATEX_TEMPLATE % "\n".join(equations)
             tex_file.write(contents)
 
         try: