summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_base.py
diff options
context:
space:
mode:
authorhaileyajohnson <haj022@ucsd.edu>2025-06-16 14:22:34 -0700
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-06-18 14:04:39 +0200
commit22506b2c162b34c4c45f748cf11ede75824a40cd (patch)
tree48649b38164cf002291db5b881038ea78e6943bd /tests/template_tests/test_base.py
parentdb4d65f8be1627223707185edac7181584425149 (diff)
Fixed #36465, Refs #35816 -- Disallowed '+' and '-' characters in template variable names.
Regression in 5183f7c287a9a5d61ca1103b55166cda52d9c647. Thank you to Jon Banafato and Baptiste Mispelon for the report.
Diffstat (limited to 'tests/template_tests/test_base.py')
-rw-r--r--tests/template_tests/test_base.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/template_tests/test_base.py b/tests/template_tests/test_base.py
index 6457d4d4e6..33a200c362 100644
--- a/tests/template_tests/test_base.py
+++ b/tests/template_tests/test_base.py
@@ -78,9 +78,6 @@ class VariableTests(SimpleTestCase):
def test_nonliterals(self):
"""Variable names that aren't resolved as literals."""
- var_names = []
- for var in ("inf", "infinity", "iNFiniTy", "nan"):
- var_names.extend((var, "-" + var, "+" + var))
- for var in var_names:
+ for var in ["inf", "infinity", "iNFiniTy", "nan"]:
with self.subTest(var=var):
self.assertIsNone(Variable(var).literal)