@@ -21,7 +21,6 @@ | |||||
# SOFTWARE. | # SOFTWARE. | ||||
from __future__ import print_function, unicode_literals | from __future__ import print_function, unicode_literals | ||||
from unittest import TestCase | |||||
from os import listdir, path | from os import listdir, path | ||||
from mwparserfromhell.compat import py3k | from mwparserfromhell.compat import py3k | ||||
@@ -32,7 +31,7 @@ class _TestParseError(Exception): | |||||
pass | pass | ||||
class TokenizerTestCase(TestCase): | |||||
class TokenizerTestCase(object): | |||||
"""A base test case for tokenizers, whose tests are loaded dynamically. | """A base test case for tokenizers, whose tests are loaded dynamically. | ||||
Subclassed along with unittest.TestCase to form TestPyTokenizer and | Subclassed along with unittest.TestCase to form TestPyTokenizer and | ||||
@@ -31,7 +31,7 @@ except ImportError: | |||||
from ._test_tokenizer import TokenizerTestCase | from ._test_tokenizer import TokenizerTestCase | ||||
@unittest.skipUnless(CTokenizer, "C tokenizer not available") | @unittest.skipUnless(CTokenizer, "C tokenizer not available") | ||||
class TestCTokenizer(TokenizerTestCase): | |||||
class TestCTokenizer(TokenizerTestCase, unittest.TestCase): | |||||
"""Test cases for the C tokenizer.""" | """Test cases for the C tokenizer.""" | ||||
@classmethod | @classmethod | ||||
@@ -27,7 +27,7 @@ from mwparserfromhell.parser.tokenizer import Tokenizer | |||||
from ._test_tokenizer import TokenizerTestCase | from ._test_tokenizer import TokenizerTestCase | ||||
class TestPyTokenizer(TokenizerTestCase): | |||||
class TestPyTokenizer(TokenizerTestCase, unittest.TestCase): | |||||
"""Test cases for the Python tokenizer.""" | """Test cases for the Python tokenizer.""" | ||||
@classmethod | @classmethod | ||||