diff options
author | Tres Seaver <tseaver@palladion.com> | 2015-02-22 11:01:08 -0500 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2015-02-22 11:07:27 -0500 |
commit | 6ae3f33a795c6ac7e1e7266c03aa8e2f6aaf5a3b (patch) | |
tree | 18f6e3bbd79fe63c59ef582d2d90b2abecad3b3d | |
parent | 136d786738f313d4b6ea6d17dbe3ffb9ddd70b21 (diff) | |
download | zope-tal-6ae3f33a795c6ac7e1e7266c03aa8e2f6aaf5a3b.tar.gz |
Hide non-directly-runnable testcase class from nose.
-rw-r--r-- | src/zope/tal/tests/test_files.py | 4 | ||||
-rw-r--r-- | src/zope/tal/tests/test_talinterpreter.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/zope/tal/tests/test_files.py b/src/zope/tal/tests/test_files.py index 8d453d5..c5b8dcf 100644 --- a/src/zope/tal/tests/test_files.py +++ b/src/zope/tal/tests/test_files.py @@ -31,7 +31,7 @@ import zope.tal.runtest from zope.tal.tests import utils -class FileTestCase(unittest.TestCase): +class _FileTestCase(unittest.TestCase): def __init__(self, file, dir): self.__file = file @@ -92,6 +92,6 @@ def test_suite(): if not args: sys.stderr.write("Warning: no test input files found!!!\n") for arg in args: - case = FileTestCase(arg, parentdir) + case = _FileTestCase(arg, parentdir) suite.addTest(case) return suite diff --git a/src/zope/tal/tests/test_talinterpreter.py b/src/zope/tal/tests/test_talinterpreter.py index 69704eb..3e5bb08 100644 --- a/src/zope/tal/tests/test_talinterpreter.py +++ b/src/zope/tal/tests/test_talinterpreter.py @@ -71,7 +71,7 @@ class MacroErrorsTestCase(TestCaseBase): self.macro[0] = ("version", "duh") -class MacroFunkyErrorTest(TestCaseBase): +class _MacroFunkyErrorTest(TestCaseBase): def test_div_in_p_using_macro(self): dummy, macros = self._compile('<p metal:define-macro="M">Booh</p>') @@ -130,7 +130,7 @@ class MacroExtendTestCase(TestCaseBase): self.assertEqual(actual, expected) -class I18NCornerTestCaseBase(TestCaseBase): +class _I18NCornerTestCaseBase(TestCaseBase): def factory(self, msgid, default, mapping={}): raise NotImplementedError("abstract method") @@ -495,7 +495,7 @@ class I18NCornerTestCaseBase(TestCaseBase): r'''Foo <span tal:replace='bar' i18n:name='bar' /></div>''') self._check(program, u"<div>FOO \u00C0</div>") -class I18NCornerTestCaseMessage(I18NCornerTestCaseBase): +class I18NCornerTestCaseMessage(_I18NCornerTestCaseBase): def factory(self, msgid, default=None, mapping={}, domain=None): return Message(msgid, domain=domain, default=default, mapping=mapping) @@ -862,5 +862,5 @@ def test_suite(): # TODO: Deactivated test, since we have not found a solution for this # and it is a deep and undocumented HTML parser issue. # Fred is looking into this. - #unittest.makeSuite(MacroFunkyErrorTest), + #unittest.makeSuite(_MacroFunkyErrorTest), )) |