<commit_before>from m.test import PluginTestCase

class Math(PluginTestCase):
    def __init__(self, *args, **kwargs):
        super().__init__(__file__, '', *args, **kwargs)

    def test(self):
        self.run_pelican({
            'PLUGINS': ['m.htmlsanity', 'm.math']<commit_msg>m.math: test only on Python 3.5+.<commit_after>import sys
import unittest

from distutils.version import LooseVersion

from m.test import PluginTestCase

class Math(PluginTestCase):
    def __init__(self, *args, **kwargs):
        super().__init__(__file__, '', *args, **kwargs)

    @unittest.skipUnless(LooseVersion(sys.version) >= LooseVersion("3.5"),
                         "The math plugin requires at least Python 3.5")
    def test(self):
        self.run_pelican({
            'PLUGINS': ['m.htmlsanity', 'm.math']
{'fraction_non_alphanumeric': 0.14356435643564355, 'fraction_numerical': 0.007425742574257425, 'mean_word_length': 3.3031914893617023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '347711', 'n_tokens_mistral': 257, 'n_tokens_neox': 248, 'n_words': 60}