summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-09-02 12:39:46 -0500
committerptmcg <ptmcg@austin.rr.com>2021-09-02 12:39:46 -0500
commitbbb78fbe549152604f0b4ba1c4d8b0fecf8c156d (patch)
tree76625f8b905cc11a2a4b813209ad3130c6cd4767 /tests
parentb2329c07a7cc872878fa8eb0fb00c78b29737707 (diff)
downloadpyparsing-git-bbb78fbe549152604f0b4ba1c4d8b0fecf8c156d.tar.gz
Make static methods staticmethods
Diffstat (limited to 'tests')
-rw-r--r--tests/test_simple_unit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_simple_unit.py b/tests/test_simple_unit.py
index 0e9c25f..849e9f9 100644
--- a/tests/test_simple_unit.py
+++ b/tests/test_simple_unit.py
@@ -422,6 +422,7 @@ class TestParseAction(PyparsingExpressionTestCase):
class TestResultsModifyingParseAction(PyparsingExpressionTestCase):
+ @staticmethod
def compute_stats_parse_action(t):
# by the time this parse action is called, parsed numeric words
# have been converted to ints by a previous parse action, so
@@ -486,6 +487,7 @@ class TestTransformStringUsingParseActions(PyparsingExpressionTestCase):
"/": "I",
}
+ @staticmethod
def markup_convert(t):
htmltag = TestTransformStringUsingParseActions.markup_convert_map[
t.markup_symbol